diff options
| author | Joakim Verona | 2012-12-24 13:30:57 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-24 13:30:57 +0100 |
| commit | dabc66ca08d9f799564596cd7e1410cd86912b2e (patch) | |
| tree | 5cc018fbf43035dbc28f445729ec35074de2d393 /src/buffer.c | |
| parent | 66d466ef695aeb5c39a10f0d609c6ff7bc82d2cf (diff) | |
| parent | 2944d406dbf0512368ce0c9de36f347ccbae289b (diff) | |
| download | emacs-dabc66ca08d9f799564596cd7e1410cd86912b2e.tar.gz emacs-dabc66ca08d9f799564596cd7e1410cd86912b2e.zip | |
auto upstream
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c index 21c42fc82b7..59b139359e2 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1341,7 +1341,7 @@ DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p, | |||
| 1341 | A non-nil FLAG means mark the buffer modified. */) | 1341 | A non-nil FLAG means mark the buffer modified. */) |
| 1342 | (Lisp_Object flag) | 1342 | (Lisp_Object flag) |
| 1343 | { | 1343 | { |
| 1344 | Lisp_Object fn, buffer, window; | 1344 | Lisp_Object fn; |
| 1345 | 1345 | ||
| 1346 | #ifdef CLASH_DETECTION | 1346 | #ifdef CLASH_DETECTION |
| 1347 | /* If buffer becoming modified, lock the file. | 1347 | /* If buffer becoming modified, lock the file. |
| @@ -1394,9 +1394,7 @@ A non-nil FLAG means mark the buffer modified. */) | |||
| 1394 | Ideally, I think there should be another mechanism for fontifying | 1394 | Ideally, I think there should be another mechanism for fontifying |
| 1395 | buffers without "modifying" buffers, or redisplay should be | 1395 | buffers without "modifying" buffers, or redisplay should be |
| 1396 | smarter about updating the `*' in mode lines. --gerd */ | 1396 | smarter about updating the `*' in mode lines. --gerd */ |
| 1397 | XSETBUFFER (buffer, current_buffer); | 1397 | if (buffer_window_count (current_buffer)) |
| 1398 | window = Fget_buffer_window (buffer, Qt); | ||
| 1399 | if (WINDOWP (window)) | ||
| 1400 | { | 1398 | { |
| 1401 | ++update_mode_lines; | 1399 | ++update_mode_lines; |
| 1402 | current_buffer->prevent_redisplay_optimizations_p = 1; | 1400 | current_buffer->prevent_redisplay_optimizations_p = 1; |