]> git.eshelyaron.com Git - emacs.git/commit
Ibuffer filter by modes: Accept several mode names
authorTino Calancha <tino.calancha@gmail.com>
Sat, 29 Sep 2018 09:40:46 +0000 (18:40 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Sat, 29 Sep 2018 09:40:46 +0000 (18:40 +0900)
commit2296bf188fc99d66306e71e6decd3d2e176b7ae6
treebfc6c4d8afad29ee0204ce56801583ea7d97e403
parent3bbe9e609138ae88a4c98bcee0da8fcf8b4a3e80
Ibuffer filter by modes: Accept several mode names

Extend all mode filters so that they handle >1 mode.
For instance, if the users want to filter all buffers in
C or C++ mode, then they can call the filter interactively
with input: 'c-mode,c++-mode' (Bug#32731).

* lisp/ibuf-macs.el(define-ibuffer-filter): Add key :accept-list.
If the value of this key is non-nil, then the filter accepts
either a single qualifier or a list of them; in the latter case,
the resultant filter is the `or' composition of the individual ones.

* lisp/ibuf-ext.el (ibuffer-filter-by-used-mode)
(ibuffer-filter-by-mode, ibuffer-filter-by-derived-mode)
Set :accept-list value non-nil.
Interactively, accept a comma separated list of mode names.

* etc/NEWS(Ibuffer): Announce this change.

Co-authored-by: Noam Postavsky <npostavs@gmail.com>
etc/NEWS
lisp/ibuf-ext.el
lisp/ibuf-macs.el