aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-07-17 04:15:06 -0400
committerStefan Monnier2012-07-17 04:15:06 -0400
commitf5695c9afd17315a5f771091044ffc19ad8b7b2b (patch)
tree9c64630648bd5522aca648c251792c8379abf33e
parent45fd731c4dcba0db0ac7e8f4a12d30274396eac7 (diff)
downloademacs-f5695c9afd17315a5f771091044ffc19ad8b7b2b.tar.gz
emacs-f5695c9afd17315a5f771091044ffc19ad8b7b2b.zip
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.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/macroexp.el2
-rw-r--r--lisp/xt-mouse.el14
3 files changed, 14 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 709daf405a7..412b1eb16d6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12012-07-17 Stefan Monnier <monnier@iro.umontreal.ca> 12012-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/macroexp.el (macroexp-let2): Use more informative names
4 for uninterned vars.
5
6 * xt-mouse.el (xterm-mouse-translate-1, xterm-mouse-event-read):
7 Use read-event since we don't really want to read chars but bytes.
8
3 * textmodes/tex-mode.el (tex-font-lock-keywords-1): Highlight not only 9 * textmodes/tex-mode.el (tex-font-lock-keywords-1): Highlight not only
4 $$..$$ but also $..$ using regexps (bug#11953). 10 $$..$$ but also $..$ using regexps (bug#11953).
5 Use tex-verbatim for \url and \path. 11 Use tex-verbatim for \url and \path.
diff --git a/lisp/emacs-lisp/macroexp.el b/lisp/emacs-lisp/macroexp.el
index c6e1c0fea38..65a72aa5312 100644
--- a/lisp/emacs-lisp/macroexp.el
+++ b/lisp/emacs-lisp/macroexp.el
@@ -274,7 +274,7 @@ be skipped; if nil, as is usual, `macroexp-const-p' is used."
274 (expsym (make-symbol "exp"))) 274 (expsym (make-symbol "exp")))
275 `(let* ((,expsym ,exp) 275 `(let* ((,expsym ,exp)
276 (,var (if (funcall #',(or test #'macroexp-const-p) ,expsym) 276 (,var (if (funcall #',(or test #'macroexp-const-p) ,expsym)
277 ,expsym (make-symbol "x"))) 277 ,expsym (make-symbol ,(symbol-name var))))
278 (,bodysym ,(macroexp-progn exps))) 278 (,bodysym ,(macroexp-progn exps)))
279 (if (eq ,var ,expsym) ,bodysym 279 (if (eq ,var ,expsym) ,bodysym
280 (macroexp-let* (list (list ,var ,expsym)) 280 (macroexp-let* (list (list ,var ,expsym))
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)."
78 ;; Retrieve the expected preface for the up-event. 78 ;; Retrieve the expected preface for the up-event.
79 (unless is-click 79 (unless is-click
80 (unless (cond ((null extension) 80 (unless (cond ((null extension)
81 (and (eq (read-char) ?\e) 81 (and (eq (read-event) ?\e)
82 (eq (read-char) ?\[) 82 (eq (read-event) ?\[)
83 (eq (read-char) ?M))) 83 (eq (read-event) ?M)))
84 ((eq extension 1006) 84 ((eq extension 1006)
85 (and (eq (read-char) ?\e) 85 (and (eq (read-event) ?\e)
86 (eq (read-char) ?\[) 86 (eq (read-event) ?\[)
87 (eq (read-char) ?<)))) 87 (eq (read-event) ?<))))
88 (error "Unexpected escape sequence from XTerm"))) 88 (error "Unexpected escape sequence from XTerm")))
89 89
90 ;; Process the up-event. 90 ;; Process the up-event.
@@ -139,7 +139,7 @@ http://invisible-island.net/xterm/ctlseqs/ctlseqs.html)."
139(defun xterm-mouse-event-read () 139(defun xterm-mouse-event-read ()
140 ;; We get the characters decoded by the keyboard coding system. Try 140 ;; We get the characters decoded by the keyboard coding system. Try
141 ;; to recover the raw character. 141 ;; to recover the raw character.
142 (let ((c (read-char))) 142 (let ((c (read-event)))
143 (cond ;; If meta-flag is t we get a meta character 143 (cond ;; If meta-flag is t we get a meta character
144 ((>= c ?\M-\^@) 144 ((>= c ?\M-\^@)
145 (- c (- ?\M-\^@ 128))) 145 (- c (- ?\M-\^@ 128)))