diff options
| author | Dmitry Antipov | 2013-01-23 18:49:54 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-01-23 18:49:54 +0400 |
| commit | 6c27465b7676fe6be837a38b2ea26846133acfa0 (patch) | |
| tree | 6a9d30dca6bb06639dffef16f1f8fc4a580eb4b1 /src | |
| parent | d6f9c03fbb8ae9a268bf6c8ab9651d9c831e8865 (diff) | |
| download | emacs-6c27465b7676fe6be837a38b2ea26846133acfa0.tar.gz emacs-6c27465b7676fe6be837a38b2ea26846133acfa0.zip | |
* insdel.c (prepare_to_modify_buffer): Force redisplay if
hidden buffer is prepared to modification (Bug#13164).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/insdel.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7dc7b25f85a..67b63eb1fdb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-01-23 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * insdel.c (prepare_to_modify_buffer): Force redisplay if | ||
| 4 | hidden buffer is prepared to modification (Bug#13164). | ||
| 5 | |||
| 1 | 2013-01-22 Dmitry Antipov <dmantipov@yandex.ru> | 6 | 2013-01-22 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 7 | ||
| 3 | * window.h (struct window): Change window_end_valid member from | 8 | * window.h (struct window): Change window_end_valid member from |
diff --git a/src/insdel.c b/src/insdel.c index 303247816ca..98dd97bdd08 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -1804,9 +1804,12 @@ prepare_to_modify_buffer (ptrdiff_t start, ptrdiff_t end, | |||
| 1804 | Fbarf_if_buffer_read_only (); | 1804 | Fbarf_if_buffer_read_only (); |
| 1805 | 1805 | ||
| 1806 | /* If we're modifying the buffer other than shown in a selected window, | 1806 | /* If we're modifying the buffer other than shown in a selected window, |
| 1807 | let redisplay consider other windows if this buffer is visible. */ | 1807 | let redisplay consider other windows if this buffer is visible or |
| 1808 | hidden (although hidden buffers have zero window counts, their state | ||
| 1809 | may affect the display too, e.g. via mode lines of other buffers). */ | ||
| 1808 | if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer | 1810 | if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer |
| 1809 | && buffer_window_count (current_buffer)) | 1811 | && (buffer_window_count (current_buffer) |
| 1812 | || BUFFER_HIDDEN_P (current_buffer))) | ||
| 1810 | ++windows_or_buffers_changed; | 1813 | ++windows_or_buffers_changed; |
| 1811 | 1814 | ||
| 1812 | if (buffer_intervals (current_buffer)) | 1815 | if (buffer_intervals (current_buffer)) |