diff lisp/files.el @ 3638:305157cf3ebb

[xemacs-hg @ 2006-10-27 19:07:32 by aidan] Deal with buffer-reversion with non-binary coding better; update fileio.c comment from Ben.
author aidan
date Fri, 27 Oct 2006 19:07:47 +0000
parents fd1acd2f457a
children cee87f8de64b
line wrap: on
line diff
--- a/lisp/files.el	Thu Oct 26 21:50:59 2006 +0000
+++ b/lisp/files.el	Fri Oct 27 19:07:47 2006 +0000
@@ -3521,7 +3521,10 @@
 	      after-change-function
 	      after-change-functions
 	      before-change-function
-	      before-change-functions)
+	      before-change-functions
+	      ;; #### b-f-c-s is _not necessarily_ the coding system that
+	      ;; was used to read in the file. See its docstring.
+	      (coding-system-for-read buffer-file-coding-system))
 	  (if revert-buffer-insert-file-contents-function
 	      (funcall revert-buffer-insert-file-contents-function
 		       file-name nil)