[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 8d332ae: * lisp/emacs-lisp/tabulated-list.el (tabul
From: |
Artur Malabarba |
Subject: |
[Emacs-diffs] master 8d332ae: * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Fix bug |
Date: |
Fri, 31 Jul 2015 11:51:30 +0000 |
branch: master
commit 8d332aeccab2208e6c6bd434738565e6abf12043
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Fix bug
When updating the very last entry, tabulated-list-print would
erase it and then try to look at the next one (which obviously
isn't there).
---
lisp/emacs-lisp/tabulated-list.el | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/lisp/emacs-lisp/tabulated-list.el
b/lisp/emacs-lisp/tabulated-list.el
index 9119c3a..cd61eb9 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -356,10 +356,11 @@ changing `tabulated-list-sort-key'."
nil)
;; If this entry sorts after id (or it's the
;; end), then just insert id and move on.
- ((funcall sorter elt
- ;; FIXME: Might be faster if
- ;; don't construct this list.
- (list local-id (tabulated-list-get-entry)))
+ ((or (not local-id)
+ (funcall sorter elt
+ ;; FIXME: Might be faster if
+ ;; don't construct this list.
+ (list local-id
(tabulated-list-get-entry))))
(apply tabulated-list-printer elt)
nil)
;; We find an entry that sorts before id,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 8d332ae: * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Fix bug,
Artur Malabarba <=