diff options
| author | Johan Claesson | 2019-09-21 00:06:58 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-21 00:06:58 +0200 |
| commit | 7c3ef77ccbc144a269b2a45ec855647290c8e0d0 (patch) | |
| tree | 284f19a4216f8ea98a9dbcee7f50612ab818f798 | |
| parent | 280cf93f313925375cf57d1d64bfbe940f950452 (diff) | |
| download | emacs-7c3ef77ccbc144a269b2a45ec855647290c8e0d0.tar.gz emacs-7c3ef77ccbc144a269b2a45ec855647290c8e0d0.zip | |
Make the reverse tabulated list sort stable
* lisp/emacs-lisp/tabulated-list.el (tabulated-list--get-sorter):
Make the reverse sorting stable (bug#37174).
Copyright-paperwork-exempt: yes
| -rw-r--r-- | lisp/emacs-lisp/tabulated-list.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el index 63ae1f8c072..f30e2c0ec8e 100644 --- a/lisp/emacs-lisp/tabulated-list.el +++ b/lisp/emacs-lisp/tabulated-list.el | |||
| @@ -373,7 +373,7 @@ column. Negate the predicate that would be returned if | |||
| 373 | (if (stringp b) b (car b))))))) | 373 | (if (stringp b) b (car b))))))) |
| 374 | ;; Reversed order. | 374 | ;; Reversed order. |
| 375 | (if (cdr tabulated-list-sort-key) | 375 | (if (cdr tabulated-list-sort-key) |
| 376 | (lambda (a b) (not (funcall sorter a b))) | 376 | (lambda (a b) (funcall sorter b a)) |
| 377 | sorter)))) | 377 | sorter)))) |
| 378 | 378 | ||
| 379 | (defsubst tabulated-list--col-local-max-widths (col) | 379 | (defsubst tabulated-list--col-local-max-widths (col) |