# HG changeset patch # User Richard M. Stallman # Date 825999745 0 # Node ID cf8ad47dc61079a84400befd902b086c841992b4 # Parent 38436b7a34ce3f4fa33ec1f504fc76057e50295a (save-place-kill-emacs-hook): Don't save if we never loaded the save-place-file. diff -r 38436b7a34ce -r cf8ad47dc610 lisp/saveplace.el --- a/lisp/saveplace.el Tue Mar 05 03:02:45 1996 +0000 +++ b/lisp/saveplace.el Tue Mar 05 04:22:25 1996 +0000 @@ -211,8 +211,10 @@ (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)