aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-01-11 15:36:57 +0000
committerStefan Monnier2005-01-11 15:36:57 +0000
commitfbd8dc8a0d448042c362edf2e475a0109548870e (patch)
tree25894fca88ed2b76ef61607a30659ecb94dd0d69
parentd3ceff9134643dbac15099219dcac175e3b0c2b8 (diff)
downloademacs-fbd8dc8a0d448042c362edf2e475a0109548870e.tar.gz
emacs-fbd8dc8a0d448042c362edf2e475a0109548870e.zip
(mouse-drag-mode-line-1, mouse-drag-vertical-line, mouse-drag-region)
(mouse-drag-region-1, mouse-drag-secondary): Ignore select-window events rather than fiddle with mouse-autoselect-window.
-rw-r--r--lisp/ChangeLog23
-rw-r--r--lisp/mouse.el23
2 files changed, 26 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 80233015b2b..2188f13d7ac 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,8 +1,15 @@
12005-01-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * mouse.el (mouse-drag-mode-line-1, mouse-drag-vertical-line)
4 (mouse-drag-region, mouse-drag-region-1, mouse-drag-secondary):
5 Ignore select-window events rather than fiddle with
6 mouse-autoselect-window.
7
12005-01-10 Jay Belanger <belanger@truman.edu> 82005-01-10 Jay Belanger <belanger@truman.edu>
2 9
3 * calc/calc-ext.el (calc-reset): Reset when inside embedded 10 * calc/calc-ext.el (calc-reset): Reset when inside embedded
4 calculator; only reset when point is inside a calculator. Don't 11 calculator; only reset when point is inside a calculator.
5 adjust the window height if the window takes up the whole height 12 Don't adjust the window height if the window takes up the whole height
6 of the frame. 13 of the frame.
7 14
82005-01-10 Thien-Thi Nguyen <ttn@gnu.org> 152005-01-10 Thien-Thi Nguyen <ttn@gnu.org>
@@ -25,8 +32,8 @@
25 (vc-disable-async-diff): New internal variable. 32 (vc-disable-async-diff): New internal variable.
26 (vc-revert-buffer): Use them to disable asynchronous diff. 33 (vc-revert-buffer): Use them to disable asynchronous diff.
27 34
28 * vc-cvs.el, vc-arch.el, vc-svn.el, vc-mcvs.el (vc-cvs-diff, 35 * vc-cvs.el, vc-arch.el, vc-svn.el, vc-mcvs.el (vc-cvs-diff)
29 vc-arch-diff, vc-svn-diff, vc-mcvs-diff): Don't diff 36 (vc-arch-diff, vc-svn-diff, vc-mcvs-diff): Don't diff
30 asynchronously if vc-disable-async-diff is t. 37 asynchronously if vc-disable-async-diff is t.
31 38
322005-01-09 Jay Belanger <belanger@truman.edu> 392005-01-09 Jay Belanger <belanger@truman.edu>
@@ -112,7 +119,7 @@
1122005-01-06 Richard M. Stallman <rms@gnu.org> 1192005-01-06 Richard M. Stallman <rms@gnu.org>
113 120
114 * emacs-lisp/find-func.el (find-face-definition): 121 * emacs-lisp/find-func.el (find-face-definition):
115 Renamed from find-face. 122 Rename from find-face.
116 123
1172005-01-06 Kim F. Storm <storm@cua.dk> 1242005-01-06 Kim F. Storm <storm@cua.dk>
118 125
@@ -128,12 +135,12 @@
128 135
1292005-01-06 Juri Linkov <juri@jurta.org> 1362005-01-06 Juri Linkov <juri@jurta.org>
130 137
131 * isearch.el (isearch-lazy-highlight-update): Rename 138 * isearch.el (isearch-lazy-highlight-update):
132 `isearch-lazy-highlight-interval' to `lazy-highlight-interval'. 139 Rename `isearch-lazy-highlight-interval' to `lazy-highlight-interval'.
133 140
1342005-01-06 Miles Bader <miles@gnu.org> 1412005-01-06 Miles Bader <miles@gnu.org>
135 142
136 * isearch.el (lazy-highlight): Renamed from `lazy-highlight-face'. 143 * isearch.el (lazy-highlight): Rename from `lazy-highlight-face'.
137 (isearch-lazy-highlight-face): Use new name. 144 (isearch-lazy-highlight-face): Use new name.
138 145
1392005-01-05 Stefan Monnier <monnier@iro.umontreal.ca> 1462005-01-05 Stefan Monnier <monnier@iro.umontreal.ca>
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 63e0f6c9d91..ea6aa90e3c7 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -1,6 +1,6 @@
1;;; mouse.el --- window system-independent mouse support 1;;; mouse.el --- window system-independent mouse support
2 2
3;; Copyright (C) 1993, 94, 95, 1999, 2000, 2001, 2002, 2003, 2004 3;; Copyright (C) 1993, 94, 95, 1999, 2000, 2001, 2002, 2003, 2004, 2005
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -397,7 +397,6 @@ MODE-LINE-P non-nil means dragging a mode line; nil means a header line."
397 (start-nwindows (count-windows t)) 397 (start-nwindows (count-windows t))
398 (old-selected-window (selected-window)) 398 (old-selected-window (selected-window))
399 (minibuffer (frame-parameter nil 'minibuffer)) 399 (minibuffer (frame-parameter nil 'minibuffer))
400 (mouse-autoselect-window nil)
401 should-enlarge-minibuffer event mouse y top bot edges wconfig growth) 400 should-enlarge-minibuffer event mouse y top bot edges wconfig growth)
402 (track-mouse 401 (track-mouse
403 (progn 402 (progn
@@ -435,7 +434,7 @@ MODE-LINE-P non-nil means dragging a mode line; nil means a header line."
435 (cond ((integerp event) 434 (cond ((integerp event)
436 (setq done t)) 435 (setq done t))
437 436
438 ((eq (car event) 'switch-frame) 437 ((memq (car event) '(switch-frame select-window))
439 nil) 438 nil)
440 439
441 ((not (memq (car event) '(mouse-movement scroll-bar-movement))) 440 ((not (memq (car event) '(mouse-movement scroll-bar-movement)))
@@ -582,7 +581,7 @@ resized by dragging their header-line."
582 ;; unknown event. 581 ;; unknown event.
583 (cond ((integerp event) 582 (cond ((integerp event)
584 (setq done t)) 583 (setq done t))
585 ((eq (car event) 'switch-frame) 584 ((memq (car event) '(switch-frame select-window))
586 nil) 585 nil)
587 ((not (memq (car event) 586 ((not (memq (car event)
588 '(mouse-movement scroll-bar-movement))) 587 '(mouse-movement scroll-bar-movement)))
@@ -754,10 +753,9 @@ remains active. Otherwise, it remains until the next input event.
754 753
755If the click is in the echo area, display the `*Messages*' buffer." 754If the click is in the echo area, display the `*Messages*' buffer."
756 (interactive "e") 755 (interactive "e")
757 (let ((w (posn-window (event-start start-event))) 756 (let ((w (posn-window (event-start start-event))))
758 (mouse-autoselect-window nil)) 757 (if (and (window-minibuffer-p w)
759 (if (not (or (not (window-minibuffer-p w)) 758 (not (minibuffer-window-active-p w)))
760 (minibuffer-window-active-p w)))
761 (save-excursion 759 (save-excursion
762 (read-event) 760 (read-event)
763 (set-buffer "*Messages*") 761 (set-buffer "*Messages*")
@@ -858,8 +856,8 @@ at the same position."
858 (while (progn 856 (while (progn
859 (setq event (read-event)) 857 (setq event (read-event))
860 (or (mouse-movement-p event) 858 (or (mouse-movement-p event)
861 (eq (car-safe event) 'switch-frame))) 859 (memq (car-safe event) '(switch-frame select-window))))
862 (if (eq (car-safe event) 'switch-frame) 860 (if (memq (car-safe event) '(switch-frame select-window))
863 nil 861 nil
864 (setq end (event-end event) 862 (setq end (event-end event)
865 end-point (posn-point end)) 863 end-point (posn-point end))
@@ -1153,6 +1151,7 @@ If MODE is 2 then do the same for lines."
1153 (move-overlay mouse-drag-overlay (point) (mark t))) 1151 (move-overlay mouse-drag-overlay (point) (mark t)))
1154 (catch 'mouse-show-mark 1152 (catch 'mouse-show-mark
1155 ;; In this loop, execute scroll bar and switch-frame events. 1153 ;; In this loop, execute scroll bar and switch-frame events.
1154 ;; Should we similarly handle `select-window' events? --Stef
1156 ;; Also ignore down-events that are undefined. 1155 ;; Also ignore down-events that are undefined.
1157 (while (progn (setq event (read-event)) 1156 (while (progn (setq event (read-event))
1158 (setq events (append events (list event))) 1157 (setq events (append events (list event)))
@@ -1476,9 +1475,9 @@ The function returns a non-nil value if it creates a secondary selection."
1476 (while (progn 1475 (while (progn
1477 (setq event (read-event)) 1476 (setq event (read-event))
1478 (or (mouse-movement-p event) 1477 (or (mouse-movement-p event)
1479 (eq (car-safe event) 'switch-frame))) 1478 (memq (car-safe event) '(switch-frame select-window))))
1480 1479
1481 (if (eq (car-safe event) 'switch-frame) 1480 (if (memq (car-safe event) '(switch-frame select-window))
1482 nil 1481 nil
1483 (setq end (event-end event) 1482 (setq end (event-end event)
1484 end-point (posn-point end)) 1483 end-point (posn-point end))