[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Restore recent whitespace changes

From: Akim Demaille
Subject: FYI: Restore recent whitespace changes
Date: Thu, 22 May 2003 10:23:34 +0200
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux)

I recently switched from Noah Friedman's whitespace.el to Emacs 21.3's
one.  I enabled it global mode, without noticing that by default, in
addition to normalizing space usage at the beginning and at the end of
the line, it normalizes those in the middle of the line.  As a result,
it killed one of Autoconf's sed program.

I would suggest that this Emacs feature (Whitespace Check Spacetab
Whitespace) be disabled by default, and that it's documentation
display the huge warning about nasty impact it can have.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
        ' \t' as '\t ' so that Emacs' whitespace.el keep it.
        Reported by Jim Meyering.

Index: lib/autoconf/functions.m4
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/functions.m4,v
retrieving revision 1.76
diff -u -u -r1.76 functions.m4
--- lib/autoconf/functions.m4 17 May 2003 10:30:08 -0000 1.76
+++ lib/autoconf/functions.m4 22 May 2003 08:20:39 -0000
@@ -744,7 +744,7 @@
   # If we got an error (system does not support symlinks), try without -L.
   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
   ac_cv_group_kmem=`echo $ac_ls_output \
-    | sed -ne ['s/[    ][      ]*/ /g;
+    | sed -ne ['s/[     ][      ]*/ /g;
               s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
               / /s/.* //;p;']`

reply via email to

[Prev in Thread] Current Thread [Next in Thread]