summaryrefslogtreecommitdiff
path: root/lisp/xt-mouse.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2012-07-17 04:15:06 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2012-07-17 04:15:06 -0400
commitf5695c9afd17315a5f771091044ffc19ad8b7b2b (patch)
tree9c64630648bd5522aca648c251792c8379abf33e /lisp/xt-mouse.el
parent45fd731c4dcba0db0ac7e8f4a12d30274396eac7 (diff)
downloademacs-f5695c9afd17315a5f771091044ffc19ad8b7b2b.tar.gz
Misc minor changes.
* lisp/xt-mouse.el (xterm-mouse-translate-1, xterm-mouse-event-read): Use read-event since we don't really want to read chars but bytes. * lisp/emacs-lisp/macroexp.el (macroexp-let2): Use more informative names for uninterned vars.
Diffstat (limited to 'lisp/xt-mouse.el')
-rw-r--r--lisp/xt-mouse.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el
index 3c2a3c57c78..76c78b84b42 100644
--- a/lisp/xt-mouse.el
+++ b/lisp/xt-mouse.el
@@ -78,13 +78,13 @@ http://invisible-island.net/xterm/ctlseqs/ctlseqs.html)."
;; Retrieve the expected preface for the up-event.
(unless is-click
(unless (cond ((null extension)
- (and (eq (read-char) ?\e)
- (eq (read-char) ?\[)
- (eq (read-char) ?M)))
+ (and (eq (read-event) ?\e)
+ (eq (read-event) ?\[)
+ (eq (read-event) ?M)))
((eq extension 1006)
- (and (eq (read-char) ?\e)
- (eq (read-char) ?\[)
- (eq (read-char) ?<))))
+ (and (eq (read-event) ?\e)
+ (eq (read-event) ?\[)
+ (eq (read-event) ?<))))
(error "Unexpected escape sequence from XTerm")))
;; Process the up-event.
@@ -139,7 +139,7 @@ http://invisible-island.net/xterm/ctlseqs/ctlseqs.html)."
(defun xterm-mouse-event-read ()
;; We get the characters decoded by the keyboard coding system. Try
;; to recover the raw character.
- (let ((c (read-char)))
+ (let ((c (read-event)))
(cond ;; If meta-flag is t we get a meta character
((>= c ?\M-\^@)
(- c (- ?\M-\^@ 128)))