[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fix/bug-57080-mode-line-format-docs d160933bca2 2/5: * src/buffer.c (mod
From: |
Phil Sainty |
Subject: |
fix/bug-57080-mode-line-format-docs d160933bca2 2/5: * src/buffer.c (mode-line-format): Document %o and %q constructs |
Date: |
Sat, 18 Mar 2023 02:32:36 -0400 (EDT) |
branch: fix/bug-57080-mode-line-format-docs
commit d160933bca201cf252c225919d404517f55ca8de
Author: Phil Sainty <psainty@orcon.net.nz>
Commit: Phil Sainty <psainty@orcon.net.nz>
* src/buffer.c (mode-line-format): Document %o and %q constructs
Missed from commit b0b02ca7f3e06d0f092df6f81babd1277bf93b0f.
---
src/buffer.c | 3 +++
1 file changed, 3 insertions(+)
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.