# HG changeset patch # User Stefan Monnier # Date 1105457817 0 # Node ID f009f3970cd91eb1cb65a138d943983a6c7c69ab # Parent 8507e984115ba01246eaaca7b6fc9764a3331064 (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. diff -r 8507e984115b -r f009f3970cd9 lisp/ChangeLog --- a/lisp/ChangeLog Tue Jan 11 08:37:15 2005 +0000 +++ b/lisp/ChangeLog Tue Jan 11 15:36:57 2005 +0000 @@ -1,8 +1,15 @@ +2005-01-11 Stefan Monnier + + * mouse.el (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. + 2005-01-10 Jay Belanger * calc/calc-ext.el (calc-reset): Reset when inside embedded - calculator; only reset when point is inside a calculator. Don't - adjust the window height if the window takes up the whole height + calculator; only reset when point is inside a calculator. + Don't adjust the window height if the window takes up the whole height of the frame. 2005-01-10 Thien-Thi Nguyen @@ -25,8 +32,8 @@ (vc-disable-async-diff): New internal variable. (vc-revert-buffer): Use them to disable asynchronous diff. - * vc-cvs.el, vc-arch.el, vc-svn.el, vc-mcvs.el (vc-cvs-diff, - vc-arch-diff, vc-svn-diff, vc-mcvs-diff): Don't diff + * vc-cvs.el, vc-arch.el, vc-svn.el, vc-mcvs.el (vc-cvs-diff) + (vc-arch-diff, vc-svn-diff, vc-mcvs-diff): Don't diff asynchronously if vc-disable-async-diff is t. 2005-01-09 Jay Belanger @@ -112,7 +119,7 @@ 2005-01-06 Richard M. Stallman * emacs-lisp/find-func.el (find-face-definition): - Renamed from find-face. + Rename from find-face. 2005-01-06 Kim F. Storm @@ -128,12 +135,12 @@ 2005-01-06 Juri Linkov - * isearch.el (isearch-lazy-highlight-update): Rename - `isearch-lazy-highlight-interval' to `lazy-highlight-interval'. + * isearch.el (isearch-lazy-highlight-update): + Rename `isearch-lazy-highlight-interval' to `lazy-highlight-interval'. 2005-01-06 Miles Bader - * isearch.el (lazy-highlight): Renamed from `lazy-highlight-face'. + * isearch.el (lazy-highlight): Rename from `lazy-highlight-face'. (isearch-lazy-highlight-face): Use new name. 2005-01-05 Stefan Monnier diff -r 8507e984115b -r f009f3970cd9 lisp/mouse.el --- a/lisp/mouse.el Tue Jan 11 08:37:15 2005 +0000 +++ b/lisp/mouse.el Tue Jan 11 15:36:57 2005 +0000 @@ -1,6 +1,6 @@ ;;; mouse.el --- window system-independent mouse support -;; Copyright (C) 1993, 94, 95, 1999, 2000, 2001, 2002, 2003, 2004 +;; Copyright (C) 1993, 94, 95, 1999, 2000, 2001, 2002, 2003, 2004, 2005 ;; Free Software Foundation, Inc. ;; Maintainer: FSF @@ -397,7 +397,6 @@ (start-nwindows (count-windows t)) (old-selected-window (selected-window)) (minibuffer (frame-parameter nil 'minibuffer)) - (mouse-autoselect-window nil) should-enlarge-minibuffer event mouse y top bot edges wconfig growth) (track-mouse (progn @@ -435,7 +434,7 @@ (cond ((integerp event) (setq done t)) - ((eq (car event) 'switch-frame) + ((memq (car event) '(switch-frame select-window)) nil) ((not (memq (car event) '(mouse-movement scroll-bar-movement))) @@ -582,7 +581,7 @@ ;; unknown event. (cond ((integerp event) (setq done t)) - ((eq (car event) 'switch-frame) + ((memq (car event) '(switch-frame select-window)) nil) ((not (memq (car event) '(mouse-movement scroll-bar-movement))) @@ -754,10 +753,9 @@ If the click is in the echo area, display the `*Messages*' buffer." (interactive "e") - (let ((w (posn-window (event-start start-event))) - (mouse-autoselect-window nil)) - (if (not (or (not (window-minibuffer-p w)) - (minibuffer-window-active-p w))) + (let ((w (posn-window (event-start start-event)))) + (if (and (window-minibuffer-p w) + (not (minibuffer-window-active-p w))) (save-excursion (read-event) (set-buffer "*Messages*") @@ -858,8 +856,8 @@ (while (progn (setq event (read-event)) (or (mouse-movement-p event) - (eq (car-safe event) 'switch-frame))) - (if (eq (car-safe event) 'switch-frame) + (memq (car-safe event) '(switch-frame select-window)))) + (if (memq (car-safe event) '(switch-frame select-window)) nil (setq end (event-end event) end-point (posn-point end)) @@ -1153,6 +1151,7 @@ (move-overlay mouse-drag-overlay (point) (mark t))) (catch 'mouse-show-mark ;; In this loop, execute scroll bar and switch-frame events. + ;; Should we similarly handle `select-window' events? --Stef ;; Also ignore down-events that are undefined. (while (progn (setq event (read-event)) (setq events (append events (list event))) @@ -1476,9 +1475,9 @@ (while (progn (setq event (read-event)) (or (mouse-movement-p event) - (eq (car-safe event) 'switch-frame))) + (memq (car-safe event) '(switch-frame select-window)))) - (if (eq (car-safe event) 'switch-frame) + (if (memq (car-safe event) '(switch-frame select-window)) nil (setq end (event-end event) end-point (posn-point end))