From cfde584f6d25db8c0ba229ebb85fba60e99eb1af Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 29 May 2005 08:36:26 +0000 Subject: [PATCH] (save-place-alist-to-file): Write the file using write-region. --- lisp/saveplace.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/saveplace.el b/lisp/saveplace.el index 9dc7b858e37..34c88a89948 100644 --- a/lisp/saveplace.el +++ b/lisp/saveplace.el @@ -222,7 +222,8 @@ may have changed\) back to `save-place-alist'." (t t)))) (condition-case nil - (write-file file) + ;; Don't use write-file; we don't want this buffer to visit it. + (write-region (point-min) (point-max) file) (file-error (message "Can't write %s" file))) (kill-buffer (current-buffer)) (message "Saving places to %s...done" file))))) -- 2.39.5