Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
45c92ddd
Commit
45c92ddd
authored
May 26, 2015
by
Artur Malabarba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/emacs-lisp/tabulated-list.el: Don't sort without sorter
(tabulated-list-print): Don't sort if sorter is nil
parent
f43306ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lisp/emacs-lisp/tabulated-list.el
lisp/emacs-lisp/tabulated-list.el
+2
-1
No files found.
lisp/emacs-lisp/tabulated-list.el
View file @
45c92ddd
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment