]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/tabulated-list.el: Don't sort without sorter
authorArtur Malabarba <bruce.connor.am@gmail.com>
Tue, 26 May 2015 08:32:45 +0000 (09:32 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Tue, 26 May 2015 08:32:45 +0000 (09:32 +0100)
(tabulated-list-print): Don't sort if sorter is nil

lisp/emacs-lisp/tabulated-list.el

index 58b8fd62d2f8c0d86e9cad8e69f77aa344dadaed..fb3045d2b4c6a15d39741747dd2d06dc0613e6f8 100644 (file)
@@ -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.