diff options
| author | Richard M. Stallman | 2005-05-29 08:36:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-05-29 08:36:26 +0000 |
| commit | cfde584f6d25db8c0ba229ebb85fba60e99eb1af (patch) | |
| tree | c9c01c9d0147ac4ab9d75404c2472d9ddb554954 | |
| parent | 46065dd4a54fa1a056ab4c86f754d0f99aa9be4e (diff) | |
| download | emacs-cfde584f6d25db8c0ba229ebb85fba60e99eb1af.tar.gz emacs-cfde584f6d25db8c0ba229ebb85fba60e99eb1af.zip | |
(save-place-alist-to-file): Write the file using write-region.
| -rw-r--r-- | lisp/saveplace.el | 3 |
1 files changed, 2 insertions, 1 deletions
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'." | |||
| 222 | (t | 222 | (t |
| 223 | t)))) | 223 | t)))) |
| 224 | (condition-case nil | 224 | (condition-case nil |
| 225 | (write-file file) | 225 | ;; Don't use write-file; we don't want this buffer to visit it. |
| 226 | (write-region (point-min) (point-max) file) | ||
| 226 | (file-error (message "Can't write %s" file))) | 227 | (file-error (message "Can't write %s" file))) |
| 227 | (kill-buffer (current-buffer)) | 228 | (kill-buffer (current-buffer)) |
| 228 | (message "Saving places to %s...done" file))))) | 229 | (message "Saving places to %s...done" file))))) |