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:
parent
6689b537c8
commit
23d00d4cdd
1 changed files with 3 additions and 3 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue