Mercurial > emacs
changeset 69332:e1685cc1a657
* files.el (hack-local-variables-confirm): Set
coding-system-for-read to nil before writing to .emacs.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 08 Mar 2006 02:24:47 +0000 |
parents | 619b0c2000a6 |
children | d42b2aec70a4 |
files | lisp/ChangeLog lisp/files.el |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Wed Mar 08 01:57:59 2006 +0000 +++ b/lisp/ChangeLog Wed Mar 08 02:24:47 2006 +0000 @@ -1,5 +1,8 @@ 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.
--- a/lisp/files.el Wed Mar 08 01:57:59 2006 +0000 +++ b/lisp/files.el Wed Mar 08 02:24:47 2006 +0000 @@ -2404,9 +2404,13 @@ (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)