autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.63b-87-


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63b-87-g497a186
Date: Thu, 16 Jul 2009 12:27:38 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=497a186732392d9ae297125071fc11794d364fcb

The branch, master has been updated
       via  497a186732392d9ae297125071fc11794d364fcb (commit)
      from  f2563825193e02c183cf831efff4db7f0d6d574a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 497a186732392d9ae297125071fc11794d364fcb
Author: Eric Blake <address@hidden>
Date:   Mon Jul 13 10:35:32 2009 -0600

    Don't hide leading space in autom4te --trace output.
    
    * bin/autom4te.in (handle_traces): Don't flatten leading and
    trailing space, since tracing spacing bugs can be useful.
    * tests/tools.at (autom4te --trace and whitespace): New test.
    
    Signed-off-by: Eric Blake <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog       |    7 +++++++
 bin/autom4te.in |    5 +----
 tests/tools.at  |   15 +++++++++++++++
 3 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a2450bd..e1a6494 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-07-16  Eric Blake  <address@hidden>
+
+       Don't hide leading space in autom4te --trace output.
+       * bin/autom4te.in (handle_traces): Don't flatten leading and
+       trailing space, since tracing spacing bugs can be useful.
+       * tests/tools.at (autom4te --trace and whitespace): New test.
+
 2009-07-13  Eric Blake  <address@hidden>
 
        Document that $srcdir can be used during configure.
diff --git a/bin/autom4te.in b/bin/autom4te.in
index 1baf507..3103369 100644
--- a/bin/autom4te.in
+++ b/bin/autom4te.in
@@ -750,10 +750,7 @@ sub handle_traces ($$%)
   # Note that the second pattern is `newline, tab or space'.  Don't lose
   # the tab!
   define([at_flatten],
-  [at_patsubst(at_patsubst(at_patsubst(at_patsubst([[[[$1]]]], [\\\n]),
-                                      [[\n\t ]+], [ ]),
-                          [ *\(.\)$], [\1]),
-              [^ *\(.*\)], [[\1]])])
+  [at_patsubst(at_patsubst([[[$1]]], [\\\n]), [[\n\t ]+], [ ])])
 
   define([at_args],    [at_shift(at_shift(at_shift(at_shift(at_shift($@)))))])
   define([at_at],      [_$0([$1], at_args($@))])
diff --git a/tests/tools.at b/tests/tools.at
index c4016cc..542e668 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -226,6 +226,21 @@ AT_CHECK_AUTOM4TE([-t 'TR A CE' -t 'TR(A)CE' file.m4])
 AT_CLEANUP
 
 
+AT_SETUP([autom4te --trace and whitespace])
+
+AT_DATA([file.m4],
+[[m4@&address@hidden([  a
+b      c  ], [\
+d\
+])
+]])
+AT_CHECK_AUTOM4TE([--language=m4sugar -t 'm4@&address@hidden' file.m4], [0],
+[[file.m4:1:m4@&address@hidden: a b c :d
+]])
+
+AT_CLEANUP
+
+
 ## ------------------ ##
 ## autoconf --trace.  ##
 ## ------------------ ##


hooks/post-receive
-- 
GNU Autoconf source repository




reply via email to

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