summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Sainty <psainty@orcon.net.nz>2022-08-14 23:11:43 +1200
committerPhil Sainty <psainty@orcon.net.nz>2023-03-27 00:32:57 +1300
commit73f186b0c9345ca386bce7f441589c3530685fae (patch)
tree41fdc2eb9bbb151bb32a9428ab06016ef974f49a /src
parent3e70b2213a4f3649639c41544f95ad35c1377755 (diff)
downloademacs-73f186b0c9345ca386bce7f441589c3530685fae.tar.gz
* src/buffer.c (mode-line-format): Document %o and %q constructs
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 3bcd387f0c5..0c740775e5b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5139,9 +5139,12 @@ A string is printed verbatim in the mode line except for %-constructs:
%C -- Like %c, but the leftmost column is displayed as one.
%i -- print the size of the buffer.
%I -- like %i, but use k, M, G, etc., to abbreviate.
+ %o -- print percent of window travel through buffer, or Top, Bot or All.
%p -- print percent of buffer above top of window, or Top, Bot or All.
%P -- print percent of buffer above bottom of window, perhaps plus Top,
or print Bottom or All.
+ %q -- print percent of buffer above both the top and the bottom of the
+ window, separated by β€˜-’, or β€˜All’.
%n -- print Narrow if appropriate.
%z -- print mnemonics of keyboard, terminal, and buffer coding systems.
%Z -- like %z, but including the end-of-line format.