summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhil Sainty <psainty@orcon.net.nz>2022-08-14 23:17:38 +1200
committerPhil Sainty <psainty@orcon.net.nz>2023-03-27 00:36:47 +1300
commit28db56d5f04879675aabb3fb2195ef2dd27716ba (patch)
tree7e0fe2d7159d02f6d4ae30061036a9ed4a6b9fa8 /doc
parentd4a3f64ad75444fa26f707aec5b642a900507a41 (diff)
downloademacs-28db56d5f04879675aabb3fb2195ef2dd27716ba.tar.gz
* src/buffer.c (mode-line-format): Reorder and reformat %-construct docs
The original formatting dates back to the earliest commits. It saved a few lines but was harder to follow. As windows are typically taller now than the terminals of the time, this reformatting now makes better sense for readabiity. See bug#57080. * doc/lispref/modes.texi: Order change for consistency. Add index.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/modes.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 42e02b20fa3..18d5da5c7d1 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -2390,6 +2390,7 @@ specifies addition of text properties.
@node %-Constructs
@subsection @code{%}-Constructs in the Mode Line
+@cindex @code{%}-constructs in the mode line
Strings used as mode line constructs can use certain
@code{%}-constructs to substitute various kinds of data. The
@@ -2480,6 +2481,9 @@ The mnemonics of keyboard, terminal, and buffer coding systems.
@item %Z
Like @samp{%z}, but including the end-of-line format.
+@item %&
+@samp{*} if the buffer is modified, and @samp{-} otherwise.
+
@item %*
@samp{%} if the buffer is read only (see @code{buffer-read-only}); @*
@samp{*} if the buffer is modified (see @code{buffer-modified-p}); @*
@@ -2491,9 +2495,6 @@ Like @samp{%z}, but including the end-of-line format.
@samp{-} otherwise. This differs from @samp{%*} only for a modified
read-only buffer. @xref{Buffer Modification}.
-@item %&
-@samp{*} if the buffer is modified, and @samp{-} otherwise.
-
@item %@@
@samp{@@} if the buffer's @code{default-directory} (@pxref{File Name
Expansion}) is on a remote machine, and @samp{-} otherwise.