Commit 4299d849 authored by Chong Yidong's avatar Chong Yidong

* files.el (hack-local-variables-confirm): Set

	coding-system-for-read to nil before writing to .emacs.
parent 9b1fad33
2006-03-07 Chong Yidong <cyd@stupidchicken.com>
* files.el (hack-local-variables-confirm): Set
coding-system-for-read to nil before writing to .emacs.
* arc-mode.el (archive-extract): Check if an existing buffer name
comes from a different archive.
......
......@@ -2404,9 +2404,13 @@ n -- to ignore the local variables list.
(when (and (= char ?!) unsafe-vars)
(dolist (elt unsafe-vars)
(add-to-list 'safe-local-variable-values elt))
(customize-save-variable
'safe-local-variable-values
safe-local-variable-values))
;; When this is called from desktop-restore-file-buffer,
;; coding-system-for-read may be non-nil. Reset it before
;; writing to .emacs.
(let ((coding-system-for-read nil))
(customize-save-variable
'safe-local-variable-values
safe-local-variable-values)))
(kill-buffer buf)
(or (= char ?!)
(= char ?\s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment