aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-11-14 02:49:26 +0000
committerRichard M. Stallman2001-11-14 02:49:26 +0000
commit02beb9365dbd8f9e72ae49ee4a59d92da37110c4 (patch)
tree8b36673f4d3b8f9765255a3497ca6e4ad229848d
parentf134ad18de16696c987a3173dd61926d208b1e1a (diff)
downloademacs-02beb9365dbd8f9e72ae49ee4a59d92da37110c4.tar.gz
emacs-02beb9365dbd8f9e72ae49ee4a59d92da37110c4.zip
(mouse-drag-region): Don't run the up-event
handler if window start changed due to the down-mouse event.
-rw-r--r--lisp/ChangeLog40
-rw-r--r--lisp/mouse.el16
2 files changed, 54 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b9ae96a0d8e..e4f8b734dd2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,43 @@
12001-11-13 Gerd Moellmann <gerd@gnu.org>
2
3 * mouse.el (mouse-drag-region): Don't run the up-event
4 handler if window start changed due to the down-mouse event.
5
62001-11-13 Richard M. Stallman <rms@gnu.org>
7
8 * mouse.el (mouse-show-mark): Either move point to the mark
9 or use highlighting, never both.
10 (mouse-buffer-menu): If WINDOW is a frame, select its selected window.
11
122001-11-13 Simon Josefsson <jas@extundo.com>
13
14 * mail/smtpmail.el: Cleanup previous patch, by "Stefan Monnier"
15 <monnier+gnu/emacs@RUM.cs.yale.edu>.
16
17 * mail/smtpmail.el (top-level): Autoload starttls, mail-utils and
18 rfc2104. Require base64 and cl.
19 (smtpmail-smtp-service): Doc fix. :type fix.
20 (smtpmail-debug-info): Doc fix.
21 (smtpmail-debug-verb, smtpmail-auth-credentials)
22 (smtpmail-starttls-credentials, smtpmail-auth-supported): New
23 variables.
24 (smtpmail-deduce-address-list, smtpmail-send-it): Don't require
25 mail-utils (it is autoloaded).
26 (smtpmail-cred-server, smtpmail-cred-port, smtpmail-cred-key)
27 (smtpmail-cred-user, smtpmail-cred-cert, smtpmail-cred-passwd)
28 (smtpmail-find-credentials, smtpmail-intersection): New utility
29 functions.
30 (smtpmail-via-smtp): Support STARTTLS, if binary is installed.
31 (smtpmail-via-smtp): Support AUTH.
32 (smtpmail-via-smtp): Use `smtpmail-debug-verb' to control VERB.
33
342001-11-13 Richard M. Stallman <rms@gnu.org>
35
36 * ebuff-menu.el (electric-buffer-update-highlight): New function.
37 (electric-buffer-overlay): New variable.
38 (electric-buffer-menu-looper): Call electric-buffer-update-highlight.
39 (electric-buffer-list): Likewise.
40
12001-11-13 Per Starback <starback@ling.uu.se> 412001-11-13 Per Starback <starback@ling.uu.se>
2 42
3 * isearch.el (isearch-whitespace-chars): Doc fix. 43 * isearch.el (isearch-whitespace-chars): Doc fix.
diff --git a/lisp/mouse.el b/lisp/mouse.el
index a33141a751e..73fed571f4e 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -677,6 +677,7 @@ remains active. Otherwise, it remains until the next input event."
677 (start-posn (event-start start-event)) 677 (start-posn (event-start start-event))
678 (start-point (posn-point start-posn)) 678 (start-point (posn-point start-posn))
679 (start-window (posn-window start-posn)) 679 (start-window (posn-window start-posn))
680 (start-window-start (window-start start-window))
680 (start-frame (window-frame start-window)) 681 (start-frame (window-frame start-window))
681 (start-hscroll (window-hscroll start-window)) 682 (start-hscroll (window-hscroll start-window))
682 (bounds (window-edges start-window)) 683 (bounds (window-edges start-window))
@@ -742,6 +743,7 @@ remains active. Otherwise, it remains until the next input event."
742 (mouse-scroll-subr start-window (1+ (- mouse-row bottom)) 743 (mouse-scroll-subr start-window (1+ (- mouse-row bottom))
743 mouse-drag-overlay start-point) 744 mouse-drag-overlay start-point)
744 (setq end-of-range (overlay-end mouse-drag-overlay)))))))))) 745 (setq end-of-range (overlay-end mouse-drag-overlay))))))))))
746
745 ;; In case we did not get a mouse-motion event 747 ;; In case we did not get a mouse-motion event
746 ;; for the final move of the mouse before a drag event 748 ;; for the final move of the mouse before a drag event
747 ;; pretend that we did get one. 749 ;; pretend that we did get one.
@@ -750,7 +752,6 @@ remains active. Otherwise, it remains until the next input event."
750 end-point (posn-point end)) 752 end-point (posn-point end))
751 (eq (posn-window end) start-window) 753 (eq (posn-window end) start-window)
752 (integer-or-marker-p end-point)) 754 (integer-or-marker-p end-point))
753
754 ;; Go to START-POINT first, so that when we move to END-POINT, 755 ;; Go to START-POINT first, so that when we move to END-POINT,
755 ;; if it's in the middle of intangible text, 756 ;; if it's in the middle of intangible text,
756 ;; point jumps in the direction away from START-POINT. 757 ;; point jumps in the direction away from START-POINT.
@@ -802,7 +803,18 @@ remains active. Otherwise, it remains until the next input event."
802 (delete-overlay mouse-drag-overlay) 803 (delete-overlay mouse-drag-overlay)
803 ;; Run the binding of the terminating up-event. 804 ;; Run the binding of the terminating up-event.
804 (when (and (functionp fun) 805 (when (and (functionp fun)
805 (= start-hscroll (window-hscroll start-window))) 806 (= start-hscroll (window-hscroll start-window))
807 ;; Don't run the up-event handler if the
808 ;; window start changed in a redisplay after
809 ;; the mouse-set-point for the down-mouse
810 ;; event at the beginning of this function.
811 ;; When the window start has changed, the
812 ;; up-mouse event will contain a different
813 ;; position due to the new window contents,
814 ;; and point is set again.
815 (or end-point
816 (= (window-start start-window)
817 start-window-start)))
806 (setq unread-command-events 818 (setq unread-command-events
807 (cons event unread-command-events))))) 819 (cons event unread-command-events)))))
808 (delete-overlay mouse-drag-overlay))))) 820 (delete-overlay mouse-drag-overlay)))))