aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-03-06 06:28:39 +0000
committerRichard M. Stallman1996-03-06 06:28:39 +0000
commit18b1fecd4abc8d549385b3c3df65940b55e4cb6f (patch)
tree0e2e17ecea31979460154bbf905b482f8e75f209
parentf8eeed5b18c8cb80b9b77e4f5ba020672a5c054c (diff)
downloademacs-18b1fecd4abc8d549385b3c3df65940b55e4cb6f.tar.gz
emacs-18b1fecd4abc8d549385b3c3df65940b55e4cb6f.zip
(save-place-kill-emacs-hook): Always call save-places-to-alist.
-rw-r--r--lisp/saveplace.el8
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:
211 (setq save-place t))))) 211 (setq save-place t)))))
212 212
213(defun save-place-kill-emacs-hook () 213(defun save-place-kill-emacs-hook ()
214 ;; First update the alist. This loads the old save-place-file if nec.
215 (save-places-to-alist)
216 ;; Now save the alist in the file, if we have ever loaded the file
217 ;; (including just now).
214 (if save-place-loaded 218 (if save-place-loaded
215 (progn 219 (save-place-alist-to-file)))
216 (save-places-to-alist)
217 (save-place-alist-to-file))))
218 220
219(add-hook 'find-file-hooks 'save-place-find-file-hook t) 221(add-hook 'find-file-hooks 'save-place-find-file-hook t)
220 222