[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 ae2463796f2: ; Caveats about using :eval in 'mode-line-format'
From: |
Eli Zaretskii |
Subject: |
emacs-30 ae2463796f2: ; Caveats about using :eval in 'mode-line-format' |
Date: |
Tue, 3 Sep 2024 10:34:10 -0400 (EDT) |
branch: emacs-30
commit ae2463796f236b8ee2cef3b5e38bffa13abd2233
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; Caveats about using :eval in 'mode-line-format'
* doc/lispref/modes.texi (Mode Line Data): Warn against more
infinite-recursion cases in ':eval' in mode line. Reported by
Nicolas P. Rougier <nicolas.rougier@inria.fr>.
---
doc/lispref/modes.texi | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 27b74a9d233..b24a89af9e0 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -2227,8 +2227,9 @@ construct.)
@item (:eval @var{form})
A list whose first element is the symbol @code{:eval} says to evaluate
@var{form}, and use the result as a string to display. Make sure this
-evaluation cannot load any files, as doing so could cause infinite
-recursion.
+evaluation cannot load any files, nor calls functions like
+@code{posn-at-point} or @code{window-in-direction}, which themselves
+evaluate the mode line, as doing so could cause infinite recursion.
@item (:propertize @var{elt} @var{props}@dots{})
A list whose first element is the symbol @code{:propertize} says to
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 ae2463796f2: ; Caveats about using :eval in 'mode-line-format',
Eli Zaretskii <=