aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/term/mac-win.el13
2 files changed, 16 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 32abe4c4ae7..b36e1bae10c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12004-07-08 Steven Tamm <steventamm@mac.com>
2
3 * term/mac-win.el (mac-scroll-ignore-events, mac-scroll-down)
4 (mac-scroll-down-line, mac-scroll-up, mac-scroll-up-line):
5 Do not treat double clicks and triple clicks specially in the
6 scroll bar (preventing strange repositioning problems)
7
12004-07-06 Stefan <monnier@iro.umontreal.ca> 82004-07-06 Stefan <monnier@iro.umontreal.ca>
2 9
3 * replace.el (query-replace-regexp-eval): Fix last change. 10 * replace.el (query-replace-regexp-eval): Fix last change.
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index 9a61a8057b4..e42c2151701 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -68,24 +68,29 @@
68 (goto-char (window-start window)) 68 (goto-char (window-start window))
69 (mac-scroll-up-line))))) 69 (mac-scroll-up-line)))))
70 70
71(defun mac-scroll-ignore-events ()
72 ;; Ignore confusing non-mouse events
73 (while (not (memq (car-safe (read-event))
74 '(mouse-1 double-mouse-1 triple-mouse-1))) nil))
75
71(defun mac-scroll-down () 76(defun mac-scroll-down ()
72 (track-mouse 77 (track-mouse
73 (while (not (eq (car-safe (read-event)) 'mouse-1)) nil) 78 (mac-scroll-ignore-events)
74 (scroll-down))) 79 (scroll-down)))
75 80
76(defun mac-scroll-down-line () 81(defun mac-scroll-down-line ()
77 (track-mouse 82 (track-mouse
78 (while (not (eq (car-safe (read-event)) 'mouse-1)) nil) 83 (mac-scroll-ignore-events)
79 (scroll-down 1))) 84 (scroll-down 1)))
80 85
81(defun mac-scroll-up () 86(defun mac-scroll-up ()
82 (track-mouse 87 (track-mouse
83 (while (not (eq (car-safe (read-event)) 'mouse-1)) nil) 88 (mac-scroll-ignore-events)
84 (scroll-up))) 89 (scroll-up)))
85 90
86(defun mac-scroll-up-line () 91(defun mac-scroll-up-line ()
87 (track-mouse 92 (track-mouse
88 (while (not (eq (car-safe (read-event)) 'mouse-1)) nil) 93 (mac-scroll-ignore-events)
89 (scroll-up 1))) 94 (scroll-up 1)))
90 95
91(defun xw-defined-colors (&optional frame) 96(defun xw-defined-colors (&optional frame)