Commit 52b9a931 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(save-place-kill-emacs-hook): Don't save

if we never loaded the save-place-file.
parent c01e66e1
......@@ -211,8 +211,10 @@ To save places automatically in all files, put this in your `.emacs' file:
(setq save-place t)))))
(defun save-place-kill-emacs-hook ()
(save-places-to-alist)
(save-place-alist-to-file))
(if save-place-loaded
(progn
(save-places-to-alist)
(save-place-alist-to-file))))
(add-hook 'find-file-hooks 'save-place-find-file-hook t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment