aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-03-16 06:51:23 +0000
committerRichard M. Stallman2002-03-16 06:51:23 +0000
commit7e98f74cdf49a6f5a554e4910f51c00ebef5a48f (patch)
treef386cc531cb7cf4037ac1976c93346352911af36
parent2c3d8820e2dfc29d39e2f29e2d3567ddcd82d623 (diff)
downloademacs-7e98f74cdf49a6f5a554e4910f51c00ebef5a48f.tar.gz
emacs-7e98f74cdf49a6f5a554e4910f51c00ebef5a48f.zip
(mode-line-mule-info): In computing help-echo prop,
avoid using save-window-excursion. And compile the function.
-rw-r--r--lisp/bindings.el22
1 files changed, 10 insertions, 12 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 4135cf1c187..2d22d2b2f9d 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -149,18 +149,16 @@ corresponding to the mode line clicked."
149 ,(propertize 149 ,(propertize
150 "%Z" 150 "%Z"
151 'help-echo 151 'help-echo
152 (purecopy (lambda (window object point) 152 #'(lambda (window object point)
153 (save-window-excursion 153 (with-current-buffer (window-buffer window)
154 (select-window window) 154 ;; Don't show this tip if the coding system is nil,
155 ;; Don't show this tip if the coding system is nil, 155 ;; it reads like a bug, and is not useful anyway.
156 ;; it reads like a bug, and is not useful anyway. 156 (when buffer-file-coding-system
157 (when buffer-file-coding-system 157 (if enable-multibyte-characters
158 (if enable-multibyte-characters 158 (concat (symbol-name buffer-file-coding-system)
159 (concat (symbol-name buffer-file-coding-system) 159 " buffer; mouse-3: describe coding system")
160 " buffer; mouse-3: describe coding system") 160 (concat "Unibyte " (symbol-name buffer-file-coding-system)
161 (concat "Unibyte " 161 " buffer")))))
162 (symbol-name buffer-file-coding-system)
163 " buffer"))))))
164 'local-map mode-line-coding-system-map)) 162 'local-map mode-line-coding-system-map))
165 "Mode-line control for displaying information of multilingual environment. 163 "Mode-line control for displaying information of multilingual environment.
166Normally it displays current input method (if any activated) and 164Normally it displays current input method (if any activated) and