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:
parent
1c4900d953
commit
17ad6f839e
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue