Function: ibuffer-read-filter-group-name
ibuffer-read-filter-group-name is a byte-compiled function defined in
ibuf-ext.el.gz.
Signature
(ibuffer-read-filter-group-name MSG &optional NODEFAULT NOERROR)
Source Code
;; Defined in /usr/src/emacs/lisp/ibuf-ext.el.gz
(defun ibuffer-read-filter-group-name (msg &optional nodefault noerror)
(when (and (not noerror) (null ibuffer-filter-groups))
(error "No filter groups active"))
;; `ibuffer-generate-filter-groups' returns all non-hidden filter
;; groups, possibly excluding empty groups or Default.
;; We add `ibuffer-hidden-filter-groups' to the list, excluding
;; Default if necessary.
(completing-read msg (nconc
(ibuffer-generate-filter-groups
(ibuffer-current-state-list)
(not ibuffer-show-empty-filter-groups)
nodefault)
(if nodefault
(remove "Default" ibuffer-hidden-filter-groups)
ibuffer-hidden-filter-groups))
nil t))