diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-03-06 06:28:39 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-03-06 06:28:39 +0000 |
commit | a595a52aca3cb2c572266c6e814d38d7f5607948 (patch) | |
tree | e09ac090bdf534aec6afe1a187ea5a7f6b2205e3 | |
parent | effc1767c00cde8df02abfc3da64f33150e9688e (diff) | |
download | emacs-a595a52aca3cb2c572266c6e814d38d7f5607948.tar.gz |
(save-place-kill-emacs-hook): Always call save-places-to-alist.
-rw-r--r-- | lisp/saveplace.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/saveplace.el b/lisp/saveplace.el index a33ccbcd7f5..9b9268051ea 100644 --- a/lisp/saveplace.el +++ b/lisp/saveplace.el @@ -211,10 +211,12 @@ To save places automatically in all files, put this in your `.emacs' file: (setq save-place t))))) (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 - (progn - (save-places-to-alist) - (save-place-alist-to-file)))) + (save-place-alist-to-file))) (add-hook 'find-file-hooks 'save-place-find-file-hook t) |