summaryrefslogtreecommitdiff
path: root/doc/lispref/display.texi
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2007-10-09 08:52:57 +0000
committerMiles Bader <miles@gnu.org>2007-10-09 08:52:57 +0000
commitd67a3ebcb5c61928a027f8f984886963e3b130a9 (patch)
tree7d97e14c04b7d93516c0c667fbec54497042da1c /doc/lispref/display.texi
parent792750401d33db66ef31931eec1c84898eada992 (diff)
parentf641917d6700dc8f22da4efe58d7dbd1fd883d12 (diff)
downloademacs-d67a3ebcb5c61928a027f8f984886963e3b130a9.tar.gz
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-875
Diffstat (limited to 'doc/lispref/display.texi')
-rw-r--r--doc/lispref/display.texi26
1 files changed, 16 insertions, 10 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 6e85bb3f3ec..90d94dbe6b3 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -3245,15 +3245,21 @@ to use the value specified by the frame.
insert images into text, and also control other aspects of how text
displays. The value of the @code{display} property should be a
display specification, or a list or vector containing several display
-specifications.
-
- Some kinds of @code{display} properties specify something to display
-instead of the text that has the property. In this case, ``the text''
-means all the consecutive characters that have the same Lisp object as
-their @code{display} property; these characters are replaced as a
-single unit. By contrast, characters that have similar but distinct
-Lisp objects as their @code{display} properties are handled
-separately. Here's a function that illustrates this point:
+specifications. Display specifications generally apply in parallel to
+the text they cover.
+
+ Some kinds of @code{display} specifications specify something to
+display instead of the text that has the property. If a list of
+display specifications includes more than one of this kind, the first
+is effective and the rest are ignored. You cannot interactively move
+point into the middle of the text that is thus replaced.
+
+ For these specifications, ``the text that has the property'' means
+all the consecutive characters that have the same Lisp object as their
+@code{display} property; these characters are replaced as a single
+unit. By contrast, characters that have similar but distinct Lisp
+objects as their @code{display} properties are handled separately.
+Here's a function that illustrates this point:
@smallexample
(defun foo ()
@@ -3281,7 +3287,7 @@ results:
(goto-char (point-min))
(dotimes (i 5)
(let ((string (concat "A")))
- (put-text-property (point) (2+ (point)) 'display string)
+ (put-text-property (point) (+ 2 (point)) 'display string)
(put-text-property (point) (1+ (point)) 'display string)
(forward-char 2))))
@end smallexample