From 5c213fcc8641d0b01fb84fe965f5aeecc9eef392 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 22 May 2005 02:54:12 +0000 Subject: [PATCH] (display_mode_element): If we're processing a list and padding is specified, put it after the last element. --- src/ChangeLog | 5 +++++ src/xdisp.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index dc474221503..ff5cf7a32d2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-05-21 Richard M. Stallman + + * 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 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support diff --git a/src/xdisp.c b/src/xdisp.c index 628688c2f07..5297b1235e9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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); -- 2.39.5