Fix problems caused by calling 'recenter' in auto-revert (Bug#20122)

lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Only call
 `recenter' if `current-buffer' is equal to `window-buffer'.

(cherry picked from commit 4a81602043)
This commit is contained in:
Mario Lang 2014-06-06 02:39:22 +02:00 committed by Eli Zaretskii
parent 1c4900d953
commit 17ad6f839e
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-06-06 Mario Lang <mlang@delysid.org>
* emacs-lisp/tabulated-list.el (tabulated-list-print): Only call
`recenter' if `current-buffer' is equal to `window-buffer'.
2015-03-20 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Detect

View file

@ -323,7 +323,8 @@ to the entry with the same ID element as the current line."
(if saved-pt
(progn (goto-char saved-pt)
(move-to-column saved-col)
(recenter))
(when (eq (window-buffer) (current-buffer))
(recenter)))
(goto-char (point-min)))))
(defun tabulated-list-print-entry (id cols)