summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2012-11-23 16:32:43 +0800
committerChong Yidong <cyd@gnu.org>2012-11-23 16:32:43 +0800
commit90d99fdf02ce6494b7e004936e467da6edd2bf73 (patch)
tree225332fed2f7cad269d9007e2da30ed49229bea2
parent24becea4a7839adcea1bafd28604b204ff5cb7d6 (diff)
downloademacs-90d99fdf02ce6494b7e004936e467da6edd2bf73.tar.gz
* modes.texi (%-Constructs): Fix statement about mode construct padding.
Fixes: debbugs:12866
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/modes.texi15
2 files changed, 15 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 40bd3c2cbbe..23da5634889 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-23 Chong Yidong <cyd@gnu.org>
+
+ * modes.texi (%-Constructs): Fix statement about mode construct
+ padding (Bug#12866).
+
2012-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
* debugging.texi (Profiling): Make it more clear
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 0634cddff84..55d838d111e 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -2086,11 +2086,16 @@ specifies addition of text properties.
@subsection @code{%}-Constructs in the Mode Line
Strings used as mode line constructs can use certain
-@code{%}-constructs to substitute various kinds of data. Here is a
-list of the defined @code{%}-constructs, and what they mean. In any
-construct except @samp{%%}, you can add a decimal integer after the
-@samp{%} to specify a minimum field width. If the width is less, the
-field is padded with spaces to the right.
+@code{%}-constructs to substitute various kinds of data. The
+following is a list of the defined @code{%}-constructs, and what they
+mean.
+
+ In any construct except @samp{%%}, you can add a decimal integer
+after the @samp{%} to specify a minimum field width. If the width is
+less, the field is padded to that width. Purely numeric constructs
+(@samp{c}, @samp{i}, @samp{I}, and @samp{l}) are padded by inserting
+spaces to the left, and others are padded by inserting spaces to the
+right.
@table @code
@item %b