diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-07-17 04:15:06 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-07-17 04:15:06 -0400 |
commit | f5695c9afd17315a5f771091044ffc19ad8b7b2b (patch) | |
tree | 9c64630648bd5522aca648c251792c8379abf33e | |
parent | 45fd731c4dcba0db0ac7e8f4a12d30274396eac7 (diff) | |
download | emacs-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.
-rw-r--r-- | lisp/ChangeLog | 6 | ||||
-rw-r--r-- | lisp/emacs-lisp/macroexp.el | 2 | ||||
-rw-r--r-- | lisp/xt-mouse.el | 14 |
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 @@ 2012-07-17 Stefan Monnier <monnier@iro.umontreal.ca> + * emacs-lisp/macroexp.el (macroexp-let2): Use more informative names + for uninterned vars. + + * 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. + * textmodes/tex-mode.el (tex-font-lock-keywords-1): Highlight not only $$..$$ but also $..$ using regexps (bug#11953). 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." (expsym (make-symbol "exp"))) `(let* ((,expsym ,exp) (,var (if (funcall #',(or test #'macroexp-const-p) ,expsym) - ,expsym (make-symbol "x"))) + ,expsym (make-symbol ,(symbol-name var)))) (,bodysym ,(macroexp-progn exps))) (if (eq ,var ,expsym) ,bodysym (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)." ;; 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))) |