aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Malabarba2015-05-26 09:32:45 +0100
committerArtur Malabarba2015-05-26 09:32:45 +0100
commit45c92ddd99f5d3ceb520f9a27678bbedde83589b (patch)
tree1a01c4ff713f65f49298562df02064dcffcd0809
parentf43306aed9fbfbaa7534f47a92e0176f309e0f30 (diff)
downloademacs-45c92ddd99f5d3ceb520f9a27678bbedde83589b.tar.gz
emacs-45c92ddd99f5d3ceb520f9a27678bbedde83589b.zip
* lisp/emacs-lisp/tabulated-list.el: Don't sort without sorter
(tabulated-list-print): Don't sort if sorter is nil
-rw-r--r--lisp/emacs-lisp/tabulated-list.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index 58b8fd62d2f..fb3045d2b4c 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -327,7 +327,8 @@ changing `tabulated-list-sort-key'."
327 (setq entry-id (tabulated-list-get-id)) 327 (setq entry-id (tabulated-list-get-id))
328 (setq saved-col (current-column))) 328 (setq saved-col (current-column)))
329 ;; Sort the entries, if necessary. 329 ;; Sort the entries, if necessary.
330 (setq entries (sort entries sorter)) 330 (when sorter
331 (setq entries (sort entries sorter)))
331 (unless (functionp tabulated-list-entries) 332 (unless (functionp tabulated-list-entries)
332 (setq tabulated-list-entries entries)) 333 (setq tabulated-list-entries entries))
333 ;; Without a sorter, we have no way to just update. 334 ;; Without a sorter, we have no way to just update.