aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2017-11-14 18:36:12 +0100
committerMartin Rudalics2017-11-14 18:36:12 +0100
commit796c7f7a949c83d64ae37cadb9a0ca28a2f1823a (patch)
tree6c30dac5fb7a03b4f8df38238f6e3d77fed7a5d6
parent40d41dd4971a880b30b505e6f0da797048983954 (diff)
downloademacs-796c7f7a949c83d64ae37cadb9a0ca28a2f1823a.tar.gz
emacs-796c7f7a949c83d64ae37cadb9a0ca28a2f1823a.zip
; Fix last fix of 'mouse-drag-and-drop-region'
* lisp/mouse.el (mouse-drag-and-drop-region): Use 'car-safe' instead of 'car' to ignore 'select-window' events. Thanks to Stefan Monnier for spotting this.
-rw-r--r--lisp/mouse.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 545a7ff2a02..17d1732e501 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -2382,7 +2382,7 @@ is copied instead of being cut."
2382 (setq event (read-event)) 2382 (setq event (read-event))
2383 (or (mouse-movement-p event) 2383 (or (mouse-movement-p event)
2384 ;; Handle `mouse-autoselect-window'. 2384 ;; Handle `mouse-autoselect-window'.
2385 (eq (car event) 'select-window))) 2385 (eq (car-safe event) 'select-window)))
2386 (unless value-selection ; initialization 2386 (unless value-selection ; initialization
2387 (delete-overlay mouse-secondary-overlay) 2387 (delete-overlay mouse-secondary-overlay)
2388 (setq value-selection (buffer-substring start end)) 2388 (setq value-selection (buffer-substring start end))