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 /src | |
| 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 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/fileio.c | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ef7acb97eb4..b4a3e74c453 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after | ||
| 4 | calling build_annotations. | ||
| 5 | |||
| 1 | 2008-05-28 Juanma Barranquero <lekktu@gmail.com> | 6 | 2008-05-28 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * coding.c (Fdecode_coding_region, Fencode_coding_region) | 8 | * coding.c (Fdecode_coding_region, Fencode_coding_region) |
diff --git a/src/fileio.c b/src/fileio.c index c4b0113523a..2a700a69f97 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5079,8 +5079,11 @@ This does code conversion according to the value of | |||
| 5079 | /* Special kludge to simplify auto-saving. */ | 5079 | /* Special kludge to simplify auto-saving. */ |
| 5080 | if (NILP (start)) | 5080 | if (NILP (start)) |
| 5081 | { | 5081 | { |
| 5082 | /* Do it later, so write-region-annotate-function can work differently | ||
| 5083 | if we save "the buffer" vs "a region". | ||
| 5084 | This is useful in tar-mode. --Stef | ||
| 5082 | XSETFASTINT (start, BEG); | 5085 | XSETFASTINT (start, BEG); |
| 5083 | XSETFASTINT (end, Z); | 5086 | XSETFASTINT (end, Z); */ |
| 5084 | Fwiden (); | 5087 | Fwiden (); |
| 5085 | } | 5088 | } |
| 5086 | 5089 | ||
| @@ -5100,6 +5103,12 @@ This does code conversion according to the value of | |||
| 5100 | } | 5103 | } |
| 5101 | } | 5104 | } |
| 5102 | 5105 | ||
| 5106 | if (NILP (start)) | ||
| 5107 | { | ||
| 5108 | XSETFASTINT (start, BEGV); | ||
| 5109 | XSETFASTINT (end, ZV); | ||
| 5110 | } | ||
| 5111 | |||
| 5103 | UNGCPRO; | 5112 | UNGCPRO; |
| 5104 | 5113 | ||
| 5105 | GCPRO5 (start, filename, annotations, visit_file, lockname); | 5114 | GCPRO5 (start, filename, annotations, visit_file, lockname); |