diff options
| author | Stefan Monnier | 2008-05-28 12:36:15 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-05-28 12:36:15 +0000 |
| commit | 6b3d752c5df6b19f6ff20174e3cb0471ff3daa27 (patch) | |
| tree | 88a9fb7048a5ed35727537dcc0ee1c1d76d4792a /lisp | |
| parent | b75d7f28826a896fad4599b22f25599a4ee582d1 (diff) | |
| download | emacs-6b3d752c5df6b19f6ff20174e3cb0471ff3daa27.tar.gz emacs-6b3d752c5df6b19f6ff20174e3cb0471ff3daa27.zip | |
* src/fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
calling build_annotations.
* lisp/files.el (basic-save-buffer-2): Pass nil rather than (point-min)
to write-region.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/files.el | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bf1a3e309fd..fc88bbc3c60 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * files.el (basic-save-buffer-2): Pass nil rather than (point-min) | ||
| 4 | to write-region. | ||
| 5 | |||
| 1 | 2008-05-28 Glenn Morris <rgm@gnu.org> | 6 | 2008-05-28 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * Makefile.in (update-elclist): Work around non-portability of "\" | 8 | * Makefile.in (update-elclist): Work around non-portability of "\" |
diff --git a/lisp/files.el b/lisp/files.el index 9802f903eeb..14752752b79 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4085,7 +4085,10 @@ Before and after saving the buffer, this function runs | |||
| 4085 | (setq tempname | 4085 | (setq tempname |
| 4086 | (make-temp-name | 4086 | (make-temp-name |
| 4087 | (expand-file-name "tmp" dir))) | 4087 | (expand-file-name "tmp" dir))) |
| 4088 | (write-region (point-min) (point-max) | 4088 | ;; Pass in nil&nil rather than point-min&max |
| 4089 | ;; cause we're saving the whole buffer. | ||
| 4090 | ;; write-region-annotate-functions may use it. | ||
| 4091 | (write-region nil nil | ||
| 4089 | tempname nil realname | 4092 | tempname nil realname |
| 4090 | buffer-file-truename 'excl) | 4093 | buffer-file-truename 'excl) |
| 4091 | nil) | 4094 | nil) |
| @@ -4119,7 +4122,10 @@ Before and after saving the buffer, this function runs | |||
| 4119 | (let (success) | 4122 | (let (success) |
| 4120 | (unwind-protect | 4123 | (unwind-protect |
| 4121 | (progn | 4124 | (progn |
| 4122 | (write-region (point-min) (point-max) | 4125 | ;; Pass in nil&nil rather than point-min&max to indicate |
| 4126 | ;; we're saving the buffer rather than just a region. | ||
| 4127 | ;; write-region-annotate-functions may make us of it. | ||
| 4128 | (write-region nil nil | ||
| 4123 | buffer-file-name nil t buffer-file-truename) | 4129 | buffer-file-name nil t buffer-file-truename) |
| 4124 | (setq success t)) | 4130 | (setq success t)) |
| 4125 | ;; If we get an error writing the new file, and we made | 4131 | ;; If we get an error writing the new file, and we made |