aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-12 17:22:41 +0000
committerRichard M. Stallman1997-08-12 17:22:41 +0000
commitc27d895b27b87a025f3c0430f0ca29631968f663 (patch)
tree052ae54878342fc3f3e1f9b16ac78271b86fd4ef
parent4fdf389ae258437c13378e73ad224fd2485e3c23 (diff)
downloademacs-c27d895b27b87a025f3c0430f0ca29631968f663.tar.gz
emacs-c27d895b27b87a025f3c0430f0ca29631968f663.zip
(set-extent-property): Don't allow
multiple extents with a mouse-face property to run together.
-rw-r--r--lisp/emacs-lisp/lucid.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/lucid.el b/lisp/emacs-lisp/lucid.el
index 5c609137ffe..e7dc74e4d4b 100644
--- a/lisp/emacs-lisp/lucid.el
+++ b/lisp/emacs-lisp/lucid.el
@@ -142,6 +142,12 @@ bottom of the buffer stack."
142 (make-overlay beg end buffer)) 142 (make-overlay beg end buffer))
143 143
144(defun set-extent-property (extent prop value) 144(defun set-extent-property (extent prop value)
145 ;; Make sure that separate adjacent extents
146 ;; with the same mouse-face value
147 ;; do not run together as one extent.
148 (and (eq prop 'mouse-face)
149 (symbolp value)
150 (setq value (list value)))
145 (if (eq prop 'duplicable) 151 (if (eq prop 'duplicable)
146 (cond ((and value (not (overlay-get extent prop))) 152 (cond ((and value (not (overlay-get extent prop)))
147 ;; If becoming duplicable, copy all overlayprops to text props. 153 ;; If becoming duplicable, copy all overlayprops to text props.