changeset 62862:8641f46cf18f

(save-place-alist-to-file): Write the file using write-region.
author Richard M. Stallman <rms@gnu.org>
date Sun, 29 May 2005 08:36:26 +0000
parents 0d5825b4e125
children 3c095150855a
files lisp/saveplace.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/saveplace.el	Sun May 29 08:34:46 2005 +0000
+++ b/lisp/saveplace.el	Sun May 29 08:36:26 2005 +0000
@@ -222,7 +222,8 @@
               (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)))))