From: Richard M. Stallman Date: Wed, 6 Mar 1996 06:28:39 +0000 (+0000) Subject: (save-place-kill-emacs-hook): Always call save-places-to-alist. X-Git-Tag: emacs-19.34~1092 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=18b1fecd4abc8d549385b3c3df65940b55e4cb6f;p=emacs.git (save-place-kill-emacs-hook): Always call save-places-to-alist. --- 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)