[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 796c7f7: ; Fix last fix of 'mouse-drag-and-drop-r
From: |
Martin Rudalics |
Subject: |
[Emacs-diffs] emacs-26 796c7f7: ; Fix last fix of 'mouse-drag-and-drop-region' |
Date: |
Tue, 14 Nov 2017 12:37:29 -0500 (EST) |
branch: emacs-26
commit 796c7f7a949c83d64ae37cadb9a0ca28a2f1823a
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>
; 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.
---
lisp/mouse.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 545a7ff..17d1732 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -2382,7 +2382,7 @@ is copied instead of being cut."
(setq event (read-event))
(or (mouse-movement-p event)
;; Handle `mouse-autoselect-window'.
- (eq (car event) 'select-window)))
+ (eq (car-safe event) 'select-window)))
(unless value-selection ; initialization
(delete-overlay mouse-secondary-overlay)
(setq value-selection (buffer-substring start end))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 796c7f7: ; Fix last fix of 'mouse-drag-and-drop-region',
Martin Rudalics <=