]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last fix of 'mouse-drag-and-drop-region'
authorMartin Rudalics <rudalics@gmx.at>
Tue, 14 Nov 2017 17:36:12 +0000 (18:36 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 14 Nov 2017 17:36:12 +0000 (18:36 +0100)
* 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

index 545a7ff2a021ad8b73f00c23bcc1304fbcc4b878..17d1732e50182eac040124242efbf8ea20167e98 100644 (file)
@@ -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))