diff options
author | Jim Blandy <jimb@redhat.com> | 1993-01-26 01:58:16 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-01-26 01:58:16 +0000 |
commit | dbc4e1c12940079cad7b24e1654a0badcda8d6fc (patch) | |
tree | e0fbea5b15bd13d2839c8b59b624cec80f31bfd8 /lisp/term/sun-mouse.el | |
parent | 72766144811cd7258b2a59e56f6e3657537ea508 (diff) | |
download | emacs-dbc4e1c12940079cad7b24e1654a0badcda8d6fc.tar.gz |
JimB's changes since January 18th
Diffstat (limited to 'lisp/term/sun-mouse.el')
-rw-r--r-- | lisp/term/sun-mouse.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/term/sun-mouse.el b/lisp/term/sun-mouse.el index 282225ea4e3..0ac9e46f4ea 100644 --- a/lisp/term/sun-mouse.el +++ b/lisp/term/sun-mouse.el @@ -318,12 +318,14 @@ but that uses minibuffer, and mucks up last-command." (let ((pc1 (read-char))) (if (or (not (equal pc1 mouse-prefix1)) (sit-for-millisecs 3)) ; a mouse prefix will have second char - (progn (setq unread-command-event pc1) ; Can get away with one unread. + ;; Can get away with one unread. + (progn (setq unread-command-events (list pc1)) nil) ; Next input not mouse event. (let ((pc2 (read-char))) (if (not (equal pc2 mouse-prefix2)) - (progn (setq unread-command-event pc1) ; put back the ^X + (progn (setq unread-command-events (list pc1)) ; put back the ^X ;;; Too bad can't do two: (setq unread-command-event (list pc1 pc2)) +;;; Well, now we can, but I don't understand this code well enough to fix it... (ding) ; user will have to retype that pc2. nil) ; This input is not a mouse event. ;; Next input has mouse prefix and is within time limit. |