[libvirt] [PATCH 7/7] src: Add Vim modeline to Makefile.am snippets

Andrea Bolognani posted 7 patches 7 years, 1 month ago
There is a newer version of this series
[libvirt] [PATCH 7/7] src: Add Vim modeline to Makefile.am snippets
Posted by Andrea Bolognani 7 years, 1 month ago
Vim won't recognize them, and thus not enable niceties
such as syntax highlighting, otherwise.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 src/access/Makefile.inc.am      | 2 ++
 src/admin/Makefile.inc.am       | 2 ++
 src/bhyve/Makefile.inc.am       | 2 ++
 src/conf/Makefile.inc.am        | 2 ++
 src/cpu/Makefile.inc.am         | 2 ++
 src/cpu_map/Makefile.inc.am     | 2 ++
 src/esx/Makefile.inc.am         | 2 ++
 src/hyperv/Makefile.inc.am      | 2 ++
 src/interface/Makefile.inc.am   | 2 ++
 src/libxl/Makefile.inc.am       | 2 ++
 src/locking/Makefile.inc.am     | 2 ++
 src/logging/Makefile.inc.am     | 2 ++
 src/lxc/Makefile.inc.am         | 2 ++
 src/network/Makefile.inc.am     | 2 ++
 src/node_device/Makefile.inc.am | 2 ++
 src/nwfilter/Makefile.inc.am    | 2 ++
 src/openvz/Makefile.inc.am      | 2 ++
 src/phyp/Makefile.inc.am        | 2 ++
 src/qemu/Makefile.inc.am        | 2 ++
 src/remote/Makefile.inc.am      | 2 ++
 src/rpc/Makefile.inc.am         | 2 ++
 src/secret/Makefile.inc.am      | 2 ++
 src/security/Makefile.inc.am    | 2 ++
 src/storage/Makefile.inc.am     | 2 ++
 src/test/Makefile.inc.am        | 2 ++
 src/util/Makefile.inc.am        | 2 ++
 src/vbox/Makefile.inc.am        | 2 ++
 src/vmware/Makefile.inc.am      | 2 ++
 src/vmx/Makefile.inc.am         | 2 ++
 src/vz/Makefile.inc.am          | 2 ++
 src/xenapi/Makefile.inc.am      | 2 ++
 src/xenconfig/Makefile.inc.am   | 2 ++
 32 files changed, 64 insertions(+)

diff --git a/src/access/Makefile.inc.am b/src/access/Makefile.inc.am
index 6d57ca1a1b..ff9e7d445f 100644
--- a/src/access/Makefile.inc.am
+++ b/src/access/Makefile.inc.am
@@ -146,3 +146,5 @@ access/viraccessapichecklxc.c: $(srcdir)/rpc/gendispatch.pl \
 	$(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=aclbody \
 	  lxc LXC $(LXC_PROTOCOL) access/viraccessapichecklxc.h \
 	  > $(srcdir)/access/viraccessapichecklxc.c
+
+# vim: filetype=automake
diff --git a/src/admin/Makefile.inc.am b/src/admin/Makefile.inc.am
index 55d721f0bf..ffbfc34200 100644
--- a/src/admin/Makefile.inc.am
+++ b/src/admin/Makefile.inc.am
@@ -48,3 +48,5 @@ admin/admin_server_dispatch_stubs.h: $(srcdir)/rpc/gendispatch.pl \
 	$(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=server \
 	  admin ADMIN $(ADMIN_PROTOCOL) \
 	  > $(srcdir)/admin/admin_server_dispatch_stubs.h
+
+# vim: filetype=automake
diff --git a/src/bhyve/Makefile.inc.am b/src/bhyve/Makefile.inc.am
index fba1b9ef30..6134f3686c 100644
--- a/src/bhyve/Makefile.inc.am
+++ b/src/bhyve/Makefile.inc.am
@@ -71,3 +71,5 @@ EXTRA_DIST += \
 .PHONY: \
 	check-augeas-bhyve \
 	$(NULL)
+
+# vim: filetype=automake
diff --git a/src/conf/Makefile.inc.am b/src/conf/Makefile.inc.am
index 219ff350d7..2d22d4614a 100644
--- a/src/conf/Makefile.inc.am
+++ b/src/conf/Makefile.inc.am
@@ -169,3 +169,5 @@ libvirt_conf_la_CFLAGS = \
 	$(NULL)
 libvirt_conf_la_LDFLAGS = $(AM_LDFLAGS)
 libvirt_conf_la_LIBADD = $(LIBXML_LIBS)
+
+# vim: filetype=automake
diff --git a/src/cpu/Makefile.inc.am b/src/cpu/Makefile.inc.am
index 5020d40583..057e571b83 100644
--- a/src/cpu/Makefile.inc.am
+++ b/src/cpu/Makefile.inc.am
@@ -22,3 +22,5 @@ libvirt_cpu_la_CFLAGS = \
 	$(AM_CFLAGS) \
 	$(NULL)
 libvirt_cpu_la_SOURCES = $(CPU_SOURCES)
+
+# vim: filetype=automake
diff --git a/src/cpu_map/Makefile.inc.am b/src/cpu_map/Makefile.inc.am
index 9eeb33e4be..8b71552357 100644
--- a/src/cpu_map/Makefile.inc.am
+++ b/src/cpu_map/Makefile.inc.am
@@ -60,3 +60,5 @@ cpumap_DATA = \
 	$(NULL)
 
 EXTRA_DIST += $(cpumap_DATA)
+
+# vim: filetype=automake
diff --git a/src/esx/Makefile.inc.am b/src/esx/Makefile.inc.am
index 152dd7b979..5ad7f2210c 100644
--- a/src/esx/Makefile.inc.am
+++ b/src/esx/Makefile.inc.am
@@ -88,3 +88,5 @@ libvirt_driver_esx_la_SOURCES = $(ESX_DRIVER_SOURCES)
 libvirt_driver_esx_la_DEPENDENCIES = $(ESX_DRIVER_GENERATED)
 
 endif WITH_ESX
+
+# vim: filetype=automake
diff --git a/src/hyperv/Makefile.inc.am b/src/hyperv/Makefile.inc.am
index a768272b72..2e4263f75d 100644
--- a/src/hyperv/Makefile.inc.am
+++ b/src/hyperv/Makefile.inc.am
@@ -57,3 +57,5 @@ libvirt_driver_hyperv_la_LDFLAGS = $(AM_LDFLAGS)
 libvirt_driver_hyperv_la_LIBADD = $(OPENWSMAN_LIBS)
 libvirt_driver_hyperv_la_SOURCES = $(HYPERV_DRIVER_SOURCES)
 endif WITH_HYPERV
+
+# vim: filetype=automake
diff --git a/src/interface/Makefile.inc.am b/src/interface/Makefile.inc.am
index 08b35d040d..76716fda14 100644
--- a/src/interface/Makefile.inc.am
+++ b/src/interface/Makefile.inc.am
@@ -40,3 +40,5 @@ libvirt_driver_interface_la_SOURCES += $(INTERFACE_DRIVER_UDEV_SOURCES)
 endif WITH_UDEV
 libvirt_driver_interface_la_LIBADD += ../gnulib/lib/libgnu.la
 endif WITH_INTERFACE
+
+# vim: filetype=automake
diff --git a/src/libxl/Makefile.inc.am b/src/libxl/Makefile.inc.am
index 59c136bf4e..77f4e0090c 100644
--- a/src/libxl/Makefile.inc.am
+++ b/src/libxl/Makefile.inc.am
@@ -102,3 +102,5 @@ EXTRA_DIST += \
 	libxl/libvirtd_libxl.aug \
 	libxl/test_libvirtd_libxl.aug.in \
 	$(NULL)
+
+# vim: filetype=automake
diff --git a/src/locking/Makefile.inc.am b/src/locking/Makefile.inc.am
index f2eb2efb7b..42642df731 100644
--- a/src/locking/Makefile.inc.am
+++ b/src/locking/Makefile.inc.am
@@ -323,3 +323,5 @@ virtlockd.8.in: locking/virtlockd.pod
 		< $@-t1 > $@-t2 && \
 	rm -f $@-t1 && \
 	mv $@-t2 $@
+
+# vim: filetype=automake
diff --git a/src/logging/Makefile.inc.am b/src/logging/Makefile.inc.am
index ae022ade0b..ec2f91b68b 100644
--- a/src/logging/Makefile.inc.am
+++ b/src/logging/Makefile.inc.am
@@ -153,3 +153,5 @@ virtlogd-admin.socket: logging/virtlogd-admin.socket.in \
 	    -e 's|[@]localstatedir[@]|$(localstatedir)|g' \
 	    < $< > $@-t && \
 	    mv $@-t $@
+
+# vim: filetype=automake
diff --git a/src/lxc/Makefile.inc.am b/src/lxc/Makefile.inc.am
index 8dd2e9ea9e..a6cff211f5 100644
--- a/src/lxc/Makefile.inc.am
+++ b/src/lxc/Makefile.inc.am
@@ -205,3 +205,5 @@ EXTRA_DIST += \
 	lxc/libvirtd_lxc.aug \
 	lxc/test_libvirtd_lxc.aug.in \
 	$(NULL)
+
+# vim: filetype=automake
diff --git a/src/network/Makefile.inc.am b/src/network/Makefile.inc.am
index 508c8c0422..992fe5b608 100644
--- a/src/network/Makefile.inc.am
+++ b/src/network/Makefile.inc.am
@@ -104,3 +104,5 @@ EXTRA_DIST += network/default.xml
 	install-data-network \
 	uninstall-data-network \
 	$(NULL)
+
+# vim: filetype=automake
diff --git a/src/node_device/Makefile.inc.am b/src/node_device/Makefile.inc.am
index 0c3ad51273..63579f2778 100644
--- a/src/node_device/Makefile.inc.am
+++ b/src/node_device/Makefile.inc.am
@@ -63,3 +63,5 @@ endif WITH_UDEV
 
 libvirt_driver_nodedev_la_LIBADD += ../gnulib/lib/libgnu.la
 endif WITH_NODE_DEVICES
+
+# vim: filetype=automake
diff --git a/src/nwfilter/Makefile.inc.am b/src/nwfilter/Makefile.inc.am
index 27aa801095..4c0dd9a047 100644
--- a/src/nwfilter/Makefile.inc.am
+++ b/src/nwfilter/Makefile.inc.am
@@ -40,3 +40,5 @@ libvirt_driver_nwfilter_impl_la_LIBADD = \
 	$(NULL)
 libvirt_driver_nwfilter_impl_la_SOURCES = $(NWFILTER_DRIVER_SOURCES)
 endif WITH_NWFILTER
+
+# vim: filetype=automake
diff --git a/src/openvz/Makefile.inc.am b/src/openvz/Makefile.inc.am
index baad737362..f7adcc4528 100644
--- a/src/openvz/Makefile.inc.am
+++ b/src/openvz/Makefile.inc.am
@@ -26,3 +26,5 @@ USED_SYM_FILES += $(srcdir)/libvirt_openvz.syms
 else ! WITH_OPENVZ
 SYM_FILES += $(srcdir)/libvirt_openvz.syms
 endif ! WITH_OPENVZ
+
+# vim: filetype=automake
diff --git a/src/phyp/Makefile.inc.am b/src/phyp/Makefile.inc.am
index 496ff25266..faea97478c 100644
--- a/src/phyp/Makefile.inc.am
+++ b/src/phyp/Makefile.inc.am
@@ -17,3 +17,5 @@ libvirt_driver_phyp_la_CFLAGS = \
 	$(NULL)
 libvirt_driver_phyp_la_SOURCES = $(PHYP_DRIVER_SOURCES)
 endif WITH_PHYP
+
+# vim: filetype=automake
diff --git a/src/qemu/Makefile.inc.am b/src/qemu/Makefile.inc.am
index 2afa67f195..a9da8b1113 100644
--- a/src/qemu/Makefile.inc.am
+++ b/src/qemu/Makefile.inc.am
@@ -162,3 +162,5 @@ EXTRA_DIST += \
 	qemu/THREADS.txt \
 	libvirt_qemu_probes.d \
 	$(NULL)
+
+# vim: filetype=automake
diff --git a/src/remote/Makefile.inc.am b/src/remote/Makefile.inc.am
index 4a415d4482..8ac2778b6c 100644
--- a/src/remote/Makefile.inc.am
+++ b/src/remote/Makefile.inc.am
@@ -323,3 +323,5 @@ libvirtd.8.in: remote/libvirtd.pod
 		< $@-t1 > $@-t2 && \
 	rm -f $@-t1 && \
 	mv $@-t2 $@
+
+# vim: filetype=automake
diff --git a/src/rpc/Makefile.inc.am b/src/rpc/Makefile.inc.am
index b8c80528d2..e12258555e 100644
--- a/src/rpc/Makefile.inc.am
+++ b/src/rpc/Makefile.inc.am
@@ -135,3 +135,5 @@ libvirt_net_rpc_client_la_CFLAGS = \
 	$(NULL)
 libvirt_net_rpc_client_la_LDFLAGS = $(AM_LDFLAGS)
 libvirt_net_rpc_client_la_LIBADD = $(CYGWIN_EXTRA_LIBADD)
+
+# vim: filetype=automake
diff --git a/src/secret/Makefile.inc.am b/src/secret/Makefile.inc.am
index 79c2b2d74a..79160437c4 100644
--- a/src/secret/Makefile.inc.am
+++ b/src/secret/Makefile.inc.am
@@ -36,3 +36,5 @@ libvirt_driver_secret_la_LIBADD = \
 libvirt_driver_secret_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
 libvirt_driver_secret_la_SOURCES = $(SECRET_DRIVER_SOURCES)
 endif WITH_SECRETS
+
+# vim: filetype=automake
diff --git a/src/security/Makefile.inc.am b/src/security/Makefile.inc.am
index b24cdfd083..3f10e151bd 100644
--- a/src/security/Makefile.inc.am
+++ b/src/security/Makefile.inc.am
@@ -120,3 +120,5 @@ uninstall-apparmor-local:
 INSTALL_DATA_LOCAL += install-apparmor-local
 UNINSTALL_LOCAL += uninstall-apparmor-local
 endif WITH_APPARMOR_PROFILES
+
+# vim: filetype=automake
diff --git a/src/storage/Makefile.inc.am b/src/storage/Makefile.inc.am
index b4400b556f..1553bef6ed 100644
--- a/src/storage/Makefile.inc.am
+++ b/src/storage/Makefile.inc.am
@@ -389,3 +389,5 @@ libvirt_parthelper_CFLAGS = \
 	$(PIE_CFLAGS) \
 	$(NULL)
 endif WITH_STORAGE_DISK
+
+# vim: filetype=automake
diff --git a/src/test/Makefile.inc.am b/src/test/Makefile.inc.am
index d52c281545..49745192b6 100644
--- a/src/test/Makefile.inc.am
+++ b/src/test/Makefile.inc.am
@@ -24,3 +24,5 @@ libvirt_driver_test_la_CFLAGS = \
 	$(NULL)
 libvirt_driver_test_la_SOURCES = $(TEST_DRIVER_SOURCES)
 endif WITH_TEST
+
+# vim: filetype=automake
diff --git a/src/util/Makefile.inc.am b/src/util/Makefile.inc.am
index 4295babac3..58f2bb880d 100644
--- a/src/util/Makefile.inc.am
+++ b/src/util/Makefile.inc.am
@@ -336,3 +336,5 @@ util/virkey%.7: util/virkey%.pod
 		< $@-t1 > $@-t2 && \
 	rm -f $@-t1 && \
 	mv $@-t2 $@
+
+# vim: filetype=automake
diff --git a/src/vbox/Makefile.inc.am b/src/vbox/Makefile.inc.am
index 8c76f84e82..5057ffe92a 100644
--- a/src/vbox/Makefile.inc.am
+++ b/src/vbox/Makefile.inc.am
@@ -74,3 +74,5 @@ libvirt_driver_vbox_impl_la_LIBADD = \
 	$(NULL)
 libvirt_driver_vbox_impl_la_SOURCES = $(VBOX_DRIVER_SOURCES)
 endif WITH_VBOX
+
+# vim: filetype=automake
diff --git a/src/vmware/Makefile.inc.am b/src/vmware/Makefile.inc.am
index 0fbf866030..1dd202ae3e 100644
--- a/src/vmware/Makefile.inc.am
+++ b/src/vmware/Makefile.inc.am
@@ -25,3 +25,5 @@ USED_SYM_FILES += $(srcdir)/libvirt_vmware.syms
 else ! WITH_VMWARE
 SYM_FILES += $(srcdir)/libvirt_vmware.syms
 endif ! WITH_VMWARE
+
+# vim: filetype=automake
diff --git a/src/vmx/Makefile.inc.am b/src/vmx/Makefile.inc.am
index b9bf6ef690..b635484513 100644
--- a/src/vmx/Makefile.inc.am
+++ b/src/vmx/Makefile.inc.am
@@ -20,3 +20,5 @@ USED_SYM_FILES += $(srcdir)/libvirt_vmx.syms
 else ! WITH_VMX
 SYM_FILES += $(srcdir)/libvirt_vmx.syms
 endif ! WITH_VMX
+
+# vim: filetype=automake
diff --git a/src/vz/Makefile.inc.am b/src/vz/Makefile.inc.am
index cacdb38795..b457d2b5c1 100644
--- a/src/vz/Makefile.inc.am
+++ b/src/vz/Makefile.inc.am
@@ -36,3 +36,5 @@ libvirt_driver_vz_impl_la_LIBADD = \
 	$(LIBNL_LIBS) \
 	$(NULL)
 endif WITH_VZ
+
+# vim: filetype=automake
diff --git a/src/xenapi/Makefile.inc.am b/src/xenapi/Makefile.inc.am
index 4640e9943f..9179cf104f 100644
--- a/src/xenapi/Makefile.inc.am
+++ b/src/xenapi/Makefile.inc.am
@@ -26,3 +26,5 @@ libvirt_driver_xenapi_la_LIBADD = \
 	$(NULL)
 libvirt_driver_xenapi_la_SOURCES = $(XENAPI_DRIVER_SOURCES)
 endif WITH_XENAPI
+
+# vim: filetype=automake
diff --git a/src/xenconfig/Makefile.inc.am b/src/xenconfig/Makefile.inc.am
index a87d69990f..d7d10f76ed 100644
--- a/src/xenconfig/Makefile.inc.am
+++ b/src/xenconfig/Makefile.inc.am
@@ -26,3 +26,5 @@ USED_SYM_FILES += $(srcdir)/libvirt_xenconfig.syms
 else ! WITH_XENCONFIG
 SYM_FILES += $(srcdir)/libvirt_xenconfig.syms
 endif ! WITH_XENCONFIG
+
+# vim: filetype=automake
-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 1/7] remote: Move polkitdir definition
Posted by Erik Skultety 7 years ago
On Wed, Jan 09, 2019 at 07:35:48PM +0100, Andrea Bolognani wrote:
> No need to have two conditional blocks.
>
> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
> ---

Reviewed-by: Erik Skultety <eskultet@redhat.com>

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 7/7] src: Add Vim modeline to Makefile.am snippets
Posted by Erik Skultety 7 years ago
On Wed, Jan 09, 2019 at 07:35:54PM +0100, Andrea Bolognani wrote:
> Vim won't recognize them, and thus not enable niceties
> such as syntax highlighting, otherwise.

So, is there a strict reason for the *inc.am naming? Reading through [1] gave me
the necessary background, but is there an inherent issue naming all of the
Makefiles in subdirectories to Makefile.am, I mean, we'd still end up including
those, or does that go against some automake rules?

Erik

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 7/7] src: Add Vim modeline to Makefile.am snippets
Posted by Daniel P. Berrangé 7 years ago
On Thu, Jan 10, 2019 at 10:23:07AM +0100, Erik Skultety wrote:
> On Wed, Jan 09, 2019 at 07:35:54PM +0100, Andrea Bolognani wrote:
> > Vim won't recognize them, and thus not enable niceties
> > such as syntax highlighting, otherwise.
> 
> So, is there a strict reason for the *inc.am naming? Reading through [1] gave me
> the necessary background, but is there an inherent issue naming all of the
> Makefiles in subdirectories to Makefile.am, I mean, we'd still end up including
> those, or does that go against some automake rules?

I picked Makefile.inc.am because I think it would be confusing to name
them Makefile.am when they are not self-contained automake files. They
can only ever be used when included from teh real Makefile.am. I'm not
inclined to rename them just for sake of editor mode settings.

We previously removed editor settings from all files, in favour of
putting such configs in the root of the source tree. eg the emacs
.dir-locals.el, .ctags, .color_coded.in, etc

Assuming this plugin:

  https://www.vim.org/scripts/script.php?script_id=441

it appears we could have a $GIT/.vimrc file for this purpose.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 7/7] src: Add Vim modeline to Makefile.am snippets
Posted by Erik Skultety 7 years ago
On Thu, Jan 10, 2019 at 10:05:49AM +0000, Daniel P. Berrangé wrote:
> On Thu, Jan 10, 2019 at 10:23:07AM +0100, Erik Skultety wrote:
> > On Wed, Jan 09, 2019 at 07:35:54PM +0100, Andrea Bolognani wrote:
> > > Vim won't recognize them, and thus not enable niceties
> > > such as syntax highlighting, otherwise.
> >
> > So, is there a strict reason for the *inc.am naming? Reading through [1] gave me
> > the necessary background, but is there an inherent issue naming all of the
> > Makefiles in subdirectories to Makefile.am, I mean, we'd still end up including
> > those, or does that go against some automake rules?
>
> I picked Makefile.inc.am because I think it would be confusing to name
> them Makefile.am when they are not self-contained automake files. They
> can only ever be used when included from teh real Makefile.am. I'm not
> inclined to rename them just for sake of editor mode settings.
>
> We previously removed editor settings from all files, in favour of
> putting such configs in the root of the source tree. eg the emacs
> .dir-locals.el, .ctags, .color_coded.in, etc

Yeah, I didn't like the vim annotation, since we should not favour a single
editor, what you suggest makes more sense if the below plugin works reliably
and doesn't mess with all of your favourite .vimrc settings.

>
> Assuming this plugin:
>
>   https://www.vim.org/scripts/script.php?script_id=441
>
> it appears we could have a $GIT/.vimrc file for this purpose.

So, I'm not sure I 100% understand what it does from the description, would it
only replace ("patch") the stuff that is relevant to the project, leaving all
of the other settings coming from your ~/.vimrc config in effect?

Erik

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 7/7] src: Add Vim modeline to Makefile.am snippets
Posted by Daniel P. Berrangé 7 years ago
On Thu, Jan 10, 2019 at 11:15:43AM +0100, Erik Skultety wrote:
> On Thu, Jan 10, 2019 at 10:05:49AM +0000, Daniel P. Berrangé wrote:
> > On Thu, Jan 10, 2019 at 10:23:07AM +0100, Erik Skultety wrote:
> > > On Wed, Jan 09, 2019 at 07:35:54PM +0100, Andrea Bolognani wrote:
> > > > Vim won't recognize them, and thus not enable niceties
> > > > such as syntax highlighting, otherwise.
> > >
> > > So, is there a strict reason for the *inc.am naming? Reading through [1] gave me
> > > the necessary background, but is there an inherent issue naming all of the
> > > Makefiles in subdirectories to Makefile.am, I mean, we'd still end up including
> > > those, or does that go against some automake rules?
> >
> > I picked Makefile.inc.am because I think it would be confusing to name
> > them Makefile.am when they are not self-contained automake files. They
> > can only ever be used when included from teh real Makefile.am. I'm not
> > inclined to rename them just for sake of editor mode settings.
> >
> > We previously removed editor settings from all files, in favour of
> > putting such configs in the root of the source tree. eg the emacs
> > .dir-locals.el, .ctags, .color_coded.in, etc
> 
> Yeah, I didn't like the vim annotation, since we should not favour a single
[> editor, what you suggest makes more sense if the below plugin works reliably
> and doesn't mess with all of your favourite .vimrc settings.
> 
> >
> > Assuming this plugin:
> >
> >   https://www.vim.org/scripts/script.php?script_id=441
> >
> > it appears we could have a $GIT/.vimrc file for this purpose.
> 
> So, I'm not sure I 100% understand what it does from the description, would it
> only replace ("patch") the stuff that is relevant to the project, leaving all
> of the other settings coming from your ~/.vimrc config in effect?

I'm not sure to be honest. I just googled for "per directory vimrc" and
found this. I don't use vim so didn't try it for real.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 7/7] src: Add Vim modeline to Makefile.am snippets
Posted by Andrea Bolognani 7 years ago
On Thu, 2019-01-10 at 10:23 +0100, Erik Skultety wrote:
> On Wed, Jan 09, 2019 at 07:35:54PM +0100, Andrea Bolognani wrote:
> > Vim won't recognize them, and thus not enable niceties
> > such as syntax highlighting, otherwise.
> 
> So, is there a strict reason for the *inc.am naming? Reading through [1]

Missing reference for [1] :)

> gave me
> the necessary background, but is there an inherent issue naming all of the
> Makefiles in subdirectories to Makefile.am, I mean, we'd still end up including
> those, or does that go against some automake rules?

I think the use of the .inc.am extension is intended to make it
obvious that it's a snippet that will be included rather than a
standalone file: as a test, I tried renaming one of the snippets
from .inc.am to .am and I was still able to distcheck.

CC'ing Dan for context, since he's the one who introduced
snippets in the first place.

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list