]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: ensure we don't embed Emacs indent-tabs-mode setting lines
authorJim Meyering <meyering@redhat.com>
Sun, 14 Jun 2009 12:21:02 +0000 (14:21 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 25 Aug 2009 07:21:00 +0000 (09:21 +0200)
Now that we prohibit indentation via TABs, there's no need for
Emacs indent-tabs-mode setting lines, so prohibit those, too.
* cfg.mk (sc_prohibit_emacs__indent_tabs_mode__setting): New rule.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index b63e76b7e81b6646c5fdad2bfdddbd65b47ff928..57f211b854d9fd2435e131200ec05bacfc111320 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -212,4 +212,10 @@ sc_prohibit_tab_based_indentation:
        msg='TAB in indentation; use only spaces'                       \
          $(_prohibit_regexp)
 
+# Don't use "indent-tabs-mode: nil" anymore.  No longer needed.
+sc_prohibit_emacs__indent_tabs_mode__setting:
+       @re='^( *[*#] *)?indent-tabs-mode:'                             \
+       msg='use of emacs indent-tabs-mode: setting'                    \
+         $(_prohibit_regexp)
+
 include $(srcdir)/dist-check.mk