mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(save-place-kill-emacs-hook): Always call save-places-to-alist.
This commit is contained in:
parent
f8eeed5b18
commit
18b1fecd4a
@ -211,10 +211,12 @@ To save places automatically in all files, put this in your `.emacs' file:
|
|||||||
(setq save-place t)))))
|
(setq save-place t)))))
|
||||||
|
|
||||||
(defun save-place-kill-emacs-hook ()
|
(defun save-place-kill-emacs-hook ()
|
||||||
|
;; First update the alist. This loads the old save-place-file if nec.
|
||||||
|
(save-places-to-alist)
|
||||||
|
;; Now save the alist in the file, if we have ever loaded the file
|
||||||
|
;; (including just now).
|
||||||
(if save-place-loaded
|
(if save-place-loaded
|
||||||
(progn
|
(save-place-alist-to-file)))
|
||||||
(save-places-to-alist)
|
|
||||||
(save-place-alist-to-file))))
|
|
||||||
|
|
||||||
(add-hook 'find-file-hooks 'save-place-find-file-hook t)
|
(add-hook 'find-file-hooks 'save-place-find-file-hook t)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user