]> git.eshelyaron.com Git - emacs.git/commitdiff
(save-place-alist-to-file): Write the file using write-region.
authorRichard M. Stallman <rms@gnu.org>
Sun, 29 May 2005 08:36:26 +0000 (08:36 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 29 May 2005 08:36:26 +0000 (08:36 +0000)
lisp/saveplace.el

index 9dc7b858e3791022396137e77cf98995a26ba28a..34c88a8994880fed49e34d193a6350cca46d346a 100644 (file)
@@ -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)))))