• Tino Calancha's avatar
    Ibuffer filter by modes: Accept several mode names · 2296bf18
    Tino Calancha authored
    
    
    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: default avatarNoam Postavsky <npostavs@gmail.com>
    2296bf18
ibuf-macs.el 12.8 KB