From 5ad86e34d86173f6495b38336d377de5b69da853 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Thu, 24 Jan 2013 07:34:20 +0400 Subject: [PATCH] * 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). --- lisp/ChangeLog | 5 +++++ lisp/doc-view.el | 2 ++ src/ChangeLog | 5 +++++ src/insdel.c | 7 ++----- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d783443f528..afab39e6efc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-01-24 Dmitry Antipov + + * 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 * paren.el (show-paren-function): Make sure an overlay exists diff --git a/lisp/doc-view.el b/lisp/doc-view.el index fa54eef828d..30aa3a09bf2 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -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)) diff --git a/src/ChangeLog b/src/ChangeLog index 7a2ff184c0a..0ee2dbfd53f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-01-24 Dmitry Antipov + + * 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 * xdisp.c (message2, message2_nolog): Remove functions. diff --git a/src/insdel.c b/src/insdel.c index 98dd97bdd08..303247816ca 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -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)) -- 2.39.2