mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
tabulated-list-print delete excess lines
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Ensure that we delete remaining lines if the list has gotten shorter (bug#50194). Copyright-paperwork-exempt: yes
This commit is contained in:
parent
630a13ac46
commit
f09ee98e68
1 changed files with 2 additions and 0 deletions
|
|
@ -481,6 +481,8 @@ changing `tabulated-list-sort-key'."
|
|||
(forward-line 1)
|
||||
(delete-region old (point))))))
|
||||
(setq entries (cdr entries)))
|
||||
(when update
|
||||
(delete-region (point) (point-max)))
|
||||
(set-buffer-modified-p nil)
|
||||
;; If REMEMBER-POS was specified, move to the "old" location.
|
||||
(if saved-pt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue