diff options
author | Juri Linkov <juri@linkov.net> | 2019-10-27 01:16:10 +0300 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2019-10-27 01:16:10 +0300 |
commit | 5a9a01797b4dad36b81ebfa83eebf96d27a2f395 (patch) | |
tree | 2373e94dd437400d1bd378d9a6fe869cdb0395a3 /lisp/emacs-lisp/seq.el | |
parent | 802dc5d4dcf899371cd1bacd06eeef8c15129fd4 (diff) | |
download | emacs-5a9a01797b4dad36b81ebfa83eebf96d27a2f395.tar.gz emacs-5a9a01797b4dad36b81ebfa83eebf96d27a2f395.tar.bz2 emacs-5a9a01797b4dad36b81ebfa83eebf96d27a2f395.zip |
* lisp/tab-bar.el (tab-bar-switch-to-recent-tab): New command.
(tab-recent): Alias to tab-bar-switch-to-recent-tab.
(tab-bar--tab-index-recent): New internal function.
(tab-bar-close-tab-select): Add new default option 'recent'.
(tab-bar-close-tab): Handle it.
* lisp/emacs-lisp/seq.el (seq-sort-by, seq-remove): Add autoload.
Diffstat (limited to 'lisp/emacs-lisp/seq.el')
-rw-r--r-- | lisp/emacs-lisp/seq.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el index 8d4093004a7..918b0dcd390 100644 --- a/lisp/emacs-lisp/seq.el +++ b/lisp/emacs-lisp/seq.el @@ -237,6 +237,7 @@ The result is a sequence of the same type as SEQUENCE." (cl-defmethod seq-sort (pred (list list)) (sort (seq-copy list) pred)) +;;;###autoload (defun seq-sort-by (function pred sequence) "Sort SEQUENCE using PRED as a comparison function. Elements of SEQUENCE are transformed by FUNCTION before being @@ -295,6 +296,7 @@ list." exclude)) sequence)))) +;;;###autoload (cl-defgeneric seq-remove (pred sequence) "Return a list of all the elements for which (PRED element) is nil in SEQUENCE." (seq-filter (lambda (elt) (not (funcall pred elt))) |