aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2011-08-09 18:13:11 -0400
committerChong Yidong2011-08-09 18:13:11 -0400
commit7be1c708c5abc7dea388d45454bd19bff07b7943 (patch)
tree4d86b007b24388f25e83515bd86c42d14de9b77a /lisp
parentebb552ed380b9f04e0c6b29374b3d32435837951 (diff)
parent8d96c9a4e700ad17921f8d2c90f4244bfa4b98b1 (diff)
downloademacs-7be1c708c5abc7dea388d45454bd19bff07b7943.tar.gz
emacs-7be1c708c5abc7dea388d45454bd19bff07b7943.zip
Merge from emacs-23 branch
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/hi-lock.el4
-rw-r--r--lisp/xt-mouse.el13
3 files changed, 23 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d81f39aa64c..66874bdb29a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12011-08-09 Chong Yidong <cyd@stupidchicken.com>
2
3 * hi-lock.el (hi-lock-unface-buffer): Fix interactive spec
4 (Bug#7554).
5
62011-08-09 Andreas Schwab <schwab@linux-m68k.org>
7
8 * xt-mouse.el (xterm-mouse-event-read): Try to recover the raw
9 character. (Bug#6594)
10
12011-08-08 Chong Yidong <cyd@stupidchicken.com> 112011-08-08 Chong Yidong <cyd@stupidchicken.com>
2 12
3 * image-dired.el: Don't use find-file for temporary work (Bug#7895). 13 * image-dired.el: Don't use find-file for temporary work (Bug#7895).
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el
index a0b5844582b..a254abe33ac 100644
--- a/lisp/hi-lock.el
+++ b/lisp/hi-lock.el
@@ -461,7 +461,9 @@ interactive functions. \(See `hi-lock-interactive-patterns'.\)
461\\<minibuffer-local-must-match-map>Use \\[minibuffer-complete] to complete a partially typed regexp. 461\\<minibuffer-local-must-match-map>Use \\[minibuffer-complete] to complete a partially typed regexp.
462\(See info node `Minibuffer History'.\)" 462\(See info node `Minibuffer History'.\)"
463 (interactive 463 (interactive
464 (if (and (display-popup-menus-p) (not last-nonmenu-event)) 464 (if (and (display-popup-menus-p)
465 (listp last-nonmenu-event)
466 use-dialog-box)
465 (catch 'snafu 467 (catch 'snafu
466 (or 468 (or
467 (x-popup-menu 469 (x-popup-menu
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el
index 403aa5d158b..eca5f813ca2 100644
--- a/lisp/xt-mouse.el
+++ b/lisp/xt-mouse.el
@@ -120,10 +120,17 @@
120 120
121;; read xterm sequences above ascii 127 (#x7f) 121;; read xterm sequences above ascii 127 (#x7f)
122(defun xterm-mouse-event-read () 122(defun xterm-mouse-event-read ()
123 ;; We get the characters decoded by the keyboard coding system. Try
124 ;; to recover the raw character.
123 (let ((c (read-char))) 125 (let ((c (read-char)))
124 (if (> c #x3FFF80) 126 (cond ;; If meta-flag is t we get a meta character
125 (+ 128 (- c #x3FFF80)) 127 ((>= c ?\M-\^@)
126 c))) 128 (- c (- ?\M-\^@ 128)))
129 ;; Reencode the character in the keyboard coding system, if
130 ;; this is a non-ASCII character.
131 ((>= c #x80)
132 (aref (encode-coding-string (string c) (keyboard-coding-system)) 0))
133 (t c))))
127 134
128(defun xterm-mouse-truncate-wrap (f) 135(defun xterm-mouse-truncate-wrap (f)
129 "Truncate with wrap-around." 136 "Truncate with wrap-around."