projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
630a13a
)
tabulated-list-print delete excess lines
author
Shitikanth Kashyap
<shitikanth1@gmail.com>
Wed, 25 Aug 2021 11:34:45 +0000
(13:34 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 25 Aug 2021 11:34:45 +0000
(13:34 +0200)
* 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
lisp/emacs-lisp/tabulated-list.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/tabulated-list.el
b/lisp/emacs-lisp/tabulated-list.el
index f0ee78745ac878df2243a50edc141024fb07edd2..fecfa91147ed6dd14754c0db91d8613d2a1cd607 100644
(file)
--- a/
lisp/emacs-lisp/tabulated-list.el
+++ b/
lisp/emacs-lisp/tabulated-list.el
@@
-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