ui/modeline: don't show encoding if UTF-8

It's only important if the encoding is something we don't expect.
This commit is contained in:
Henrik Lissner 2019-01-03 12:36:44 -05:00
parent a4cd5fafd8
commit 7844115561
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -503,8 +503,8 @@ Meant for `+modeline-buffer-path-function'."
(cond ((eq category 'coding-category-undecided)
"")
((or (eq category 'coding-category-utf-8)
(eq (plist-get sys :name) 'prefer-utf-8))
"UTF-8 ")
(string-match-p "utf-8" (symbol-name (plist-get sys :name))))
"")
((concat (upcase (symbol-name (plist-get sys :name)))
" ")))
'help-echo (plist-get (coding-system-plist buffer-file-coding-system) :docstring)))))