* src/insdel.c (prepare_to_modify_buffer): Revert last change as suggested

in http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00555.html.
* lisp/doc-view.el (doc-view-display): Force mode line update until
all document is converted.  Suggested by Stefan Monnier (Bug#13164).
This commit is contained in:
Dmitry Antipov 2013-01-24 07:34:20 +04:00
parent e02703bda9
commit 5ad86e34d8
4 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2013-01-24 Dmitry Antipov <dmantipov@yandex.ru>
* doc-view.el (doc-view-display): Force mode line update until all
document is converted. Suggested by Stefan Monnier (Bug#13164).
2013-01-23 Bastien Guerry <bzg@gnu.org>
* paren.el (show-paren-function): Make sure an overlay exists

View file

@ -1265,6 +1265,8 @@ have the page we want to view."
"[0-9]+")
t)
'doc-view-sort))
(unless (eq (length prev-pages) (length doc-view-current-files))
(force-mode-line-update))
(dolist (win (or (get-buffer-window-list buffer nil t)
(list t)))
(let* ((page (doc-view-current-page win))

View file

@ -1,3 +1,8 @@
2013-01-24 Dmitry Antipov <dmantipov@yandex.ru>
* insdel.c (prepare_to_modify_buffer): Revert last change as suggested
in http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00555.html.
2013-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
* xdisp.c (message2, message2_nolog): Remove functions.

View file

@ -1804,12 +1804,9 @@ prepare_to_modify_buffer (ptrdiff_t start, ptrdiff_t end,
Fbarf_if_buffer_read_only ();
/* If we're modifying the buffer other than shown in a selected window,
let redisplay consider other windows if this buffer is visible or
hidden (although hidden buffers have zero window counts, their state
may affect the display too, e.g. via mode lines of other buffers). */
let redisplay consider other windows if this buffer is visible. */
if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer
&& (buffer_window_count (current_buffer)
|| BUFFER_HIDDEN_P (current_buffer)))
&& buffer_window_count (current_buffer))
++windows_or_buffers_changed;
if (buffer_intervals (current_buffer))