Commit 17ad6f83 authored by Mario Lang's avatar Mario Lang Committed by Eli Zaretskii

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 4a816020)
parent 1c4900d9
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment