[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/term/mac-win.el
From: |
Steven Tamm |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/term/mac-win.el |
Date: |
Thu, 08 Jul 2004 11:55:32 -0400 |
Index: emacs/lisp/term/mac-win.el
diff -c emacs/lisp/term/mac-win.el:1.23 emacs/lisp/term/mac-win.el:1.24
*** emacs/lisp/term/mac-win.el:1.23 Mon Sep 1 15:45:36 2003
--- emacs/lisp/term/mac-win.el Thu Jul 8 15:24:54 2004
***************
*** 68,91 ****
(goto-char (window-start window))
(mac-scroll-up-line)))))
(defun mac-scroll-down ()
(track-mouse
! (while (not (eq (car-safe (read-event)) 'mouse-1)) nil)
(scroll-down)))
(defun mac-scroll-down-line ()
(track-mouse
! (while (not (eq (car-safe (read-event)) 'mouse-1)) nil)
(scroll-down 1)))
(defun mac-scroll-up ()
(track-mouse
! (while (not (eq (car-safe (read-event)) 'mouse-1)) nil)
(scroll-up)))
(defun mac-scroll-up-line ()
(track-mouse
! (while (not (eq (car-safe (read-event)) 'mouse-1)) nil)
(scroll-up 1)))
(defun xw-defined-colors (&optional frame)
--- 68,96 ----
(goto-char (window-start window))
(mac-scroll-up-line)))))
+ (defun mac-scroll-ignore-events ()
+ ;; Ignore confusing non-mouse events
+ (while (not (memq (car-safe (read-event))
+ '(mouse-1 double-mouse-1 triple-mouse-1))) nil))
+
(defun mac-scroll-down ()
(track-mouse
! (mac-scroll-ignore-events)
(scroll-down)))
(defun mac-scroll-down-line ()
(track-mouse
! (mac-scroll-ignore-events)
(scroll-down 1)))
(defun mac-scroll-up ()
(track-mouse
! (mac-scroll-ignore-events)
(scroll-up)))
(defun mac-scroll-up-line ()
(track-mouse
! (mac-scroll-ignore-events)
(scroll-up 1)))
(defun xw-defined-colors (&optional frame)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/term/mac-win.el,
Steven Tamm <=