]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_mode_element): If we're processing a list and
authorRichard M. Stallman <rms@gnu.org>
Sun, 22 May 2005 02:54:12 +0000 (02:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 22 May 2005 02:54:12 +0000 (02:54 +0000)
padding is specified, put it after the last element.

src/ChangeLog
src/xdisp.c

index dc47422150326b8b0e7ac1c66f62b8a92dc5184e..ff5cf7a32d24bb6ae92f6caeec21f23845792e4b 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-21  Richard M. Stallman  <rms@gnu.org>
+
+       * xdisp.c (display_mode_element): If we're processing a list and
+       padding is specified, put it after the last element.
+
 2005-05-21  Eli Zaretskii  <eliz@gnu.org>
 
        * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
index 628688c2f077e83d6394cf6b949f908cb3606bbc..5297b1235e9454b9df0e3587a46aae06f18ceca9 100644 (file)
@@ -16033,7 +16033,12 @@ display_mode_element (it, depth, field_width, precision, elt, props, risky)
                   && --limit > 0
                   && (precision <= 0 || n < precision))
              {
-               n += display_mode_element (it, depth, field_width - n,
+               n += display_mode_element (it, depth,
+                                          /* Do padding only after the last
+                                             element in the list.  */
+                                          (! CONSP (XCDR (elt))
+                                           ? field_width - n
+                                           : 0),
                                           precision - n, XCAR (elt),
                                           props, risky);
                elt = XCDR (elt);