]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/international/mule-cmds.el (view-hello-file): Avoid duplicate
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 20 Apr 2018 13:16:55 +0000 (09:16 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 20 Apr 2018 13:16:55 +0000 (09:16 -0400)
Don't hardcode the coding-system, now that it's specified with a "coding:" tag

lisp/international/mule-cmds.el

index c66cc6747de6c9d8d41cdd6309684b72c548f355..6c49b8fa6a06f9200c239645ddac4b0c2e872b24 100644 (file)
@@ -281,9 +281,7 @@ wrong, use this command again to toggle back to the right mode."
 (defun view-hello-file ()
   "Display the HELLO file, which lists many languages and characters."
   (interactive)
-  ;; We have to decode the file in any environment.
-  (let ((coding-system-for-read 'utf-8))
-    (view-file (expand-file-name "HELLO" data-directory))))
+  (view-file (expand-file-name "HELLO" data-directory)))
 
 (defun universal-coding-system-argument (coding-system)
   "Execute an I/O command using the specified coding system."