diff lisp/auto-save.el @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents 5aa1854ad537
children 79940b592197
line wrap: on
line diff
--- a/lisp/auto-save.el	Fri Mar 08 13:33:14 2002 +0000
+++ b/lisp/auto-save.el	Wed Mar 13 08:54:06 2002 +0000
@@ -590,7 +590,10 @@
 				 (generate-new-buffer "*recovered*")))
 		   (setq buffer-read-only nil)
 		   (erase-buffer)
-		   (insert-file-contents afile nil)
+		   ;; see comment in `revert-buffer' in files.el about
+		   ;; why it's safe to always use `escape-quoted'.
+		   (let ((coding-system-for-read 'escape-quoted))
+		     (insert-file-contents afile nil))
 		   (ignore-errors
 		     (after-find-file nil))
 		   (setq buffer-auto-save-file-name nil)