From: Lars Ingebrigtsen Date: Thu, 19 Aug 2021 15:11:00 +0000 (+0200) Subject: Add ibuffer-saved-filter-groups example to the doc string X-Git-Tag: emacs-28.0.90~1430 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cd00fb5e2a813a71969d1370bb05e1c533107045;p=emacs.git Add ibuffer-saved-filter-groups example to the doc string * lisp/ibuf-ext.el (ibuffer-saved-filter-groups): Add an example for this complicated syntax (bug#18694). --- diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 1dc8acbe1f3..c73f899656d 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el @@ -332,6 +332,17 @@ where NAME is a unique but arbitrary name and FILTER-GROUP-LIST is a list of filter groups with the same structure as allowed for `ibuffer-filter-groups'. +For instance: + + (setq ibuffer-saved-filter-groups + \\='((\"Home\" + (\"Modified\" (predicate buffer-modified-p (current-buffer))) + (\"Helm\" (name . \"\*helm.+\")) + (\"Dev\" (or (filename . \".+\.css$\") + (filename . \".+\.html?$\") + (mode . android-mode) + (mode . clojure-mode)))))) + See also the functions `ibuffer-save-filter-groups' and `ibuffer-switch-to-saved-filter-groups' for saving and switching between sets of filter groups, and the variable