]> git.eshelyaron.com Git - emacs.git/commitdiff
(save-place-kill-emacs-hook): Don't save
authorRichard M. Stallman <rms@gnu.org>
Tue, 5 Mar 1996 04:22:25 +0000 (04:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 5 Mar 1996 04:22:25 +0000 (04:22 +0000)
if we never loaded the save-place-file.

lisp/saveplace.el

index f86c48a6f7c89f3215cd4727a3c62d0059f84396..a33ccbcd7f5f5de83ebca26677c70d27c3fc7de1 100644 (file)
@@ -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)