Commit 45c92ddd authored by Artur Malabarba's avatar Artur Malabarba
Browse files

* lisp/emacs-lisp/tabulated-list.el: Don't sort without sorter

(tabulated-list-print): Don't sort if sorter is nil
parent f43306ae
......@@ -327,7 +327,8 @@ changing `tabulated-list-sort-key'."
(setq entry-id (tabulated-list-get-id))
(setq saved-col (current-column)))
;; Sort the entries, if necessary.
(setq entries (sort entries sorter))
(when sorter
(setq entries (sort entries sorter)))
(unless (functionp tabulated-list-entries)
(setq tabulated-list-entries entries))
;; Without a sorter, we have no way to just update.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment