]> git.eshelyaron.com Git - emacs.git/commitdiff
(list-charset-chars): Set buffer file
authorDave Love <fx@gnu.org>
Thu, 11 Sep 2003 09:25:50 +0000 (09:25 +0000)
committerDave Love <fx@gnu.org>
Thu, 11 Sep 2003 09:25:50 +0000 (09:25 +0000)
coding system.

lisp/international/mule-diag.el

index b4a1d3d4cd1b3e6c218b21313feda27c4233ba0b..9aed8213e39a5d135635ea2c7ed65457102e2b9b 100644 (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