diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-03-05 04:22:25 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-03-05 04:22:25 +0000 |
commit | 52b9a93170c1540d45c60ceeaff468fcfc5a1744 (patch) | |
tree | 25d201d9db5fe29ff09caae66fab09513f7febbf /lisp/saveplace.el | |
parent | c01e66e11b903592f268a4ffc52b2c2e5343d0ad (diff) | |
download | emacs-52b9a93170c1540d45c60ceeaff468fcfc5a1744.tar.gz |
(save-place-kill-emacs-hook): Don't save
if we never loaded the save-place-file.
Diffstat (limited to 'lisp/saveplace.el')
-rw-r--r-- | lisp/saveplace.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/saveplace.el b/lisp/saveplace.el index f86c48a6f7c..a33ccbcd7f5 100644 --- a/lisp/saveplace.el +++ b/lisp/saveplace.el @@ -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) |