; 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>.
This commit is contained in:
parent
4047072c7d
commit
ae2463796f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue