Fix saveplace.el when desktop.el restores non-ASCII buffers
* lisp/saveplace.el (load-save-place-alist-from-file): Bind 'coding-system-for-read' to nil, so that the 'coding:' cookie in the save-place file takes effect. (Bug#55592)
This commit is contained in:
parent
6ac6919f74
commit
aab560f0c1
1 changed files with 5 additions and 1 deletions
|
@ -290,7 +290,11 @@ may have changed) back to `save-place-alist'."
|
|||
;; adding hooks to it.
|
||||
(with-current-buffer (get-buffer-create " *Saved Places*")
|
||||
(delete-region (point-min) (point-max))
|
||||
(insert-file-contents file)
|
||||
;; Make sure our 'coding:' cookie in the save-place
|
||||
;; file will take effect, in case the caller binds
|
||||
;; coding-system-for-read.
|
||||
(let (coding-system-for-read)
|
||||
(insert-file-contents file))
|
||||
(goto-char (point-min))
|
||||
(setq save-place-alist
|
||||
(with-demoted-errors "Error reading save-place-file: %S"
|
||||
|
|
Loading…
Add table
Reference in a new issue