Function: ibuffer-save-filter-groups
ibuffer-save-filter-groups is an autoloaded, interactive and
byte-compiled function defined in ibuf-ext.el.gz.
Signature
(ibuffer-save-filter-groups NAME GROUPS)
Documentation
Save all active filter groups GROUPS as NAME.
They are added to ibuffer-saved-filter-groups. Interactively,
prompt for NAME, and use the current filters.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/ibuf-ext.el.gz
;;;###autoload
(defun ibuffer-save-filter-groups (name groups)
"Save all active filter groups GROUPS as NAME.
They are added to `ibuffer-saved-filter-groups'. Interactively,
prompt for NAME, and use the current filters."
(interactive
(if (null ibuffer-filter-groups)
(error "No filter groups active")
(list
(read-from-minibuffer "Save current filter groups as: ")
ibuffer-filter-groups)))
(if-let ((it (assoc name ibuffer-saved-filter-groups)))
(setcdr it groups)
(push (cons name groups) ibuffer-saved-filter-groups))
(ibuffer-maybe-save-stuff))