1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):

Don't block remember-pos if buffer isn't displayed.  (Bug#20921)
This commit is contained in:
Artur Malabarba 2015-06-29 10:07:24 +01:00
parent 6689b537c8
commit 23d00d4cdd

View file

@ -321,11 +321,11 @@ changing `tabulated-list-sort-key'."
(sorter (tabulated-list--get-sorter))
entry-id saved-pt saved-col window-line)
(and remember-pos
(setq entry-id (tabulated-list-get-id))
(setq saved-col (current-column))
(when (eq (window-buffer) (current-buffer))
(setq window-line
(count-screen-lines (window-start) (point))))
(setq entry-id (tabulated-list-get-id))
(setq saved-col (current-column)))
(count-screen-lines (window-start) (point)))))
;; Sort the entries, if necessary.
(when sorter
(setq entries (sort entries sorter)))