summaryrefslogtreecommitdiff
path: root/lisp/bindings.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-07-06 09:44:26 +0000
committerEli Zaretskii <eliz@gnu.org>2001-07-06 09:44:26 +0000
commita9b511e0c0053ebf7a91bb3d50329b5aa3a6e5a7 (patch)
treef7c35ba64971cd7038cb36df42806f6ebedcd2e4 /lisp/bindings.el
parentad782551325b7c694ee234b5ff4c5688d90e561c (diff)
downloademacs-a9b511e0c0053ebf7a91bb3d50329b5aa3a6e5a7.tar.gz
(mode-line-mule-info): Don't show the tip with
buffer-file-coding-system if that is nil.
Diffstat (limited to 'lisp/bindings.el')
-rw-r--r--lisp/bindings.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 10a098be306..519d2b59c30 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -137,12 +137,15 @@ corresponding to the mode line clicked."
(purecopy (lambda (window object point)
(save-window-excursion
(select-window window)
- (if enable-multibyte-characters
- (concat (symbol-name buffer-file-coding-system)
- " buffer; see M-x describe-coding-system")
- (concat "Unibyte "
- (symbol-name buffer-file-coding-system)
- " buffer")))))))
+ ;; Don't show this tip if the coding system is nil,
+ ;; it reads like a bug, and is not useful anyway.
+ (when buffer-file-coding-system
+ (if enable-multibyte-characters
+ (concat (symbol-name buffer-file-coding-system)
+ " buffer; see M-x describe-coding-system")
+ (concat "Unibyte "
+ (symbol-name buffer-file-coding-system)
+ " buffer"))))))))
"Mode-line control for displaying information of multilingual environment.
Normally it displays current input method (if any activated) and
mnemonics of the following coding systems: