Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4299d849
Commit
4299d849
authored
Mar 08, 2006
by
Chong Yidong
Browse files
* files.el (hack-local-variables-confirm): Set
coding-system-for-read to nil before writing to .emacs.
parent
9b1fad33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/files.el
lisp/files.el
+7
-3
No files found.
lisp/ChangeLog
View file @
4299d849
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.
...
...
lisp/files.el
View file @
4299d849
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment