[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 8f9993bb3f 1/2: ; * src/buffer.c (syms_of_buffer) <mode-line-fo
From: |
Eli Zaretskii |
Subject: |
emacs-28 8f9993bb3f 1/2: ; * src/buffer.c (syms_of_buffer) <mode-line-format>: Doc fix. |
Date: |
Mon, 18 Jul 2022 08:32:37 -0400 (EDT) |
branch: emacs-28
commit 8f9993bb3f6aa52a3f3e5f1a0744e48ade6a30d6
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; * src/buffer.c (syms_of_buffer) <mode-line-format>: Doc fix.
---
src/buffer.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/buffer.c b/src/buffer.c
index 321bc88ed2..560bdf8753 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5580,7 +5580,7 @@ the mode line appears at the bottom. */);
DEFVAR_PER_BUFFER ("mode-line-format", &BVAR (current_buffer,
mode_line_format),
Qnil,
- doc: /* Template for displaying mode line for current
buffer.
+ doc: /* Template for displaying mode line for a window's
buffer.
The value may be nil, a string, a symbol or a list.
@@ -5593,6 +5593,9 @@ For any symbol other than t or nil, the symbol's value is
processed as
`risky-local-variable' property, all properties in any strings, as
well as all :eval and :propertize forms in the value, are ignored.
+When the value is processed, the window's buffer is temporarily the
+current buffer.
+
A list whose car is a string or list is processed by processing each
of the list elements recursively, as separate mode line constructs,
and concatenating the results.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 8f9993bb3f 1/2: ; * src/buffer.c (syms_of_buffer) <mode-line-format>: Doc fix.,
Eli Zaretskii <=