* 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.
This commit is contained in:
parent
802dc5d4dc
commit
5a9a01797b
2 changed files with 30 additions and 4 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue