]> git.eshelyaron.com Git - emacs.git/commitdiff
(revert-buffer): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Tue, 30 Jul 2002 00:44:36 +0000 (00:44 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 30 Jul 2002 00:44:36 +0000 (00:44 +0000)
lisp/files.el

index 3fe0fa479ee8d5684eb992f48381b8d3d9a242c2..98cf8bfae568e65eea19e5d966a6ef0ad406d1f3 100644 (file)
@@ -3305,7 +3305,8 @@ non-nil, it is called instead of rereading visited file contents."
                          ;; Auto-saved file shoule be read without
                          ;; any code conversion.
                          (if auto-save-p 'emacs-mule-unix
-                           coding-system-for-read)))
+                           (or coding-system-for-read
+                               buffer-file-coding-system))))
                     ;; This force
                     ;; after-insert-file-set-buffer-file-coding-system
                     ;; (called from insert-file-contents) to set