(list-charset-chars): Set buffer file

coding system.
This commit is contained in:
Dave Love
2003-09-11 09:25:50 +00:00
parent 1d1af02ddd
commit 8a97200fb4

View File

@@ -281,6 +281,10 @@ detailed meanings of these arguments."
(interactive (list (read-charset "Character set: ")))
(with-output-to-temp-buffer "*Character List*"
(with-current-buffer standard-output
(if (coding-system-p charset)
;; Useful to be able to do C-u C-x = to find file code, for
;; instance:
(set-buffer-file-coding-system charset))
(setq mode-line-format (copy-sequence mode-line-format))
(let ((slot (memq 'mode-line-buffer-identification mode-line-format)))
(if slot