Mercurial > emacs
changeset 38300:4a7286bcdc6d
(mode-line-mule-info): Don't show the tip with
buffer-file-coding-system if that is nil.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 06 Jul 2001 09:41:18 +0000 |
parents | b97c155e6976 |
children | b54f450e504c |
files | lisp/bindings.el |
diffstat | 1 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/bindings.el Fri Jul 06 08:41:36 2001 +0000 +++ b/lisp/bindings.el Fri Jul 06 09:41:18 2001 +0000 @@ -137,12 +137,15 @@ (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: