+2005-01-11 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * 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 <belanger@truman.edu>
* 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 <ttn@gnu.org>
(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 <belanger@truman.edu>
2005-01-06 Richard M. Stallman <rms@gnu.org>
* emacs-lisp/find-func.el (find-face-definition):
- Renamed from find-face.
+ Rename from find-face.
2005-01-06 Kim F. Storm <storm@cua.dk>
2005-01-06 Juri Linkov <juri@jurta.org>
- * 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 <miles@gnu.org>
- * 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 <monnier@iro.umontreal.ca>
;;; 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
(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
(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)))
;; 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)))
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*")
(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))
(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)))
(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))