diff options
| author | Eli Zaretskii | 2019-03-04 19:49:47 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-03-04 19:49:47 +0200 |
| commit | 52fd40068e0f8b41bd29eaec1334299eb86d0bff (patch) | |
| tree | 2bb0153b3f4268d26d031d3b3b4980be6d4e0578 | |
| parent | f872b65b2f6b83f3cee2eb0e80cb296d1de99505 (diff) | |
| download | emacs-52fd40068e0f8b41bd29eaec1334299eb86d0bff.tar.gz emacs-52fd40068e0f8b41bd29eaec1334299eb86d0bff.zip | |
Minor improvement of documentation of '(when CONDITION . SPEC)'
* doc/lispref/display.texi (Other Display Specs): Add a caveat
to using the '(when CONDITION . SPEC)' display specs.
| -rw-r--r-- | doc/lispref/display.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 921d58a1f3a..7892c15b462 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -4853,6 +4853,16 @@ and the buffer position where the @code{display} property was found, | |||
| 4853 | respectively. Both positions can be different when @code{object} is a | 4853 | respectively. Both positions can be different when @code{object} is a |
| 4854 | string. | 4854 | string. |
| 4855 | 4855 | ||
| 4856 | Note that @var{condition} will only be evaluated when redisplay | ||
| 4857 | examines the text where this display spec is located, so this feature | ||
| 4858 | is best suited for conditions that are relatively stable, i.e.@: | ||
| 4859 | yield, for each particular buffer position, the same results on every | ||
| 4860 | evaluation. If the results change for the same text location, e.g., | ||
| 4861 | if the result depends on the position of point, then the conditional | ||
| 4862 | specification might not do what you want, because redisplay examines | ||
| 4863 | only those parts of buffer text where it has reasons to assume that | ||
| 4864 | something changed since the last display cycle. | ||
| 4865 | |||
| 4856 | @node Display Margins | 4866 | @node Display Margins |
| 4857 | @subsection Displaying in the Margins | 4867 | @subsection Displaying in the Margins |
| 4858 | @cindex display margins | 4868 | @cindex display margins |