diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/buffer.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0d441761ce5..439b5c06e27 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-09-22 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * buffer.c (Fset_buffer_modified_p): Handle indirect buffers | ||
| 4 | (Bug#8207). | ||
| 5 | |||
| 1 | 2012-09-22 Kenichi Handa <handa@gnu.org> | 6 | 2012-09-22 Kenichi Handa <handa@gnu.org> |
| 2 | 7 | ||
| 3 | * composite.c (composition_reseat_it): Handle the case that a | 8 | * composite.c (composition_reseat_it): Handle the case that a |
diff --git a/src/buffer.c b/src/buffer.c index b020edb9962..22624e33a4b 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1341,9 +1341,13 @@ A non-nil FLAG means mark the buffer modified. */) | |||
| 1341 | /* If buffer becoming modified, lock the file. | 1341 | /* If buffer becoming modified, lock the file. |
| 1342 | If buffer becoming unmodified, unlock the file. */ | 1342 | If buffer becoming unmodified, unlock the file. */ |
| 1343 | 1343 | ||
| 1344 | fn = BVAR (current_buffer, file_truename); | 1344 | struct buffer *b = current_buffer->base_buffer |
| 1345 | ? current_buffer->base_buffer | ||
| 1346 | : current_buffer; | ||
| 1347 | |||
| 1348 | fn = BVAR (b, file_truename); | ||
| 1345 | /* Test buffer-file-name so that binding it to nil is effective. */ | 1349 | /* Test buffer-file-name so that binding it to nil is effective. */ |
| 1346 | if (!NILP (fn) && ! NILP (BVAR (current_buffer, filename))) | 1350 | if (!NILP (fn) && ! NILP (BVAR (b, filename))) |
| 1347 | { | 1351 | { |
| 1348 | bool already = SAVE_MODIFF < MODIFF; | 1352 | bool already = SAVE_MODIFF < MODIFF; |
| 1349 | if (!already && !NILP (flag)) | 1353 | if (!already && !NILP (flag)) |