From: Alexis <flexibeast@gmail.com>
To: 18694@debbugs.gnu.org
Subject: bug#18694: 25.0.50; `ibuffer(-saved)-filter-groups', `ibuffer-saved-filters'
Date: Sun, 12 Oct 2014 14:06:59 +1100 [thread overview]
Message-ID: <87a952nfpg.fsf@gmail.com> (raw)
In-Reply-To: <1458254a-b913-49bb-b273-0c76bd8603e2@default>
Drew Adams writes:
> As introduction, here is one user's attempt to understand the structure
> of `ibuffer-saved-filter-groups':
> http://emacs.stackexchange.com/q/2087/105
>
> The user says: "I'm guessing at the predicate bit as I can't find any
> examples or documentation. What should it really look like?"
Fwiw, here's part of the value for `ibuffer-saved-filter-groups`, from
my config file:
---BEGIN---
(setq ibuffer-saved-filter-groups
'(("Home"
("Recent" (predicate buffer-is-recent-buffer-p (current-buffer)))
("Helm" (name . "\*helm.+"))
("Dev" (or (filename . ".+\.css$")
(filename . ".+\.html?$")
(mode . android-mode)
(mode . clojure-mode)
(mode . compilation-mode)
(mode . cperl-mode)
(mode . emacs-lisp-mode)
(mode . ert-results-mode)
(mode . perl-mode)
(name . "\*Backtrace.*")
(name . "\*cider-repl.+")
(name . "\*magit.+")
(name . "\*scratch.+")))
("Docs" (or (mode . doc-view-mode)
(mode . Info-mode)
(mode . irfc-mode)
...
---END---
`buffer-is-recent-p` is a function i've defined elsewhere in my config -
it returns `t` if the buffer was one of the last 5 buffers accessed. It
took some guessing to learn how `predicate` could be used in this
context ....
Alexis.
next prev parent reply other threads:[~2014-10-12 3:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-12 2:05 bug#18694: 25.0.50; `ibuffer(-saved)-filter-groups', `ibuffer-saved-filters' Drew Adams
2014-10-12 2:28 ` Drew Adams
2014-10-12 2:30 ` Drew Adams
2014-10-12 3:06 ` Alexis [this message]
2021-08-19 15:09 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a952nfpg.fsf@gmail.com \
--to=flexibeast@gmail.com \
--cc=18694@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.