summaryrefslogtreecommitdiff
path: root/lisp/image.el
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>1999-10-13 17:38:18 +0000
committerDave Love <fx@gnu.org>1999-10-13 17:38:18 +0000
commit10e2102e561718aea1592224686a8fd8ca77dd3d (patch)
tree413947656d0ee202b052bb39d2c15a60c8a0d7be /lisp/image.el
parent8af8a9ca7c03bde417e6275c26a1b6898da29e0a (diff)
downloademacs-10e2102e561718aea1592224686a8fd8ca77dd3d.tar.gz
(insert-image): Copy the image spec and add an intangible property.
Diffstat (limited to 'lisp/image.el')
-rw-r--r--lisp/image.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/image.el b/lisp/image.el
index bcbb91e365d..1e4aea4d709 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -132,10 +132,13 @@ means display it in the right marginal area."
(setq image (list (list 'margin area) image)))
(let ((start (point)))
(insert string)
+ ;; Copy `image' so that inserting it twice in a row (adjacently)
+ ;; displays two copies of the image.
(add-text-properties start (point)
- (list 'display image
+ (list 'display (copy-sequence image)
+ 'intangible (list t) ; something unique
'rear-nonsticky (list 'display)))))
-
+
;;;###autoload
(defun remove-images (start end &optional buffer)