From: Juri Linkov <juri@linkov.net>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 59153@debbugs.gnu.org, Akib Azmain Turja <akib@disroot.org>
Subject: bug#59153: List project buffers
Date: Sat, 12 Nov 2022 20:02:47 +0200 [thread overview]
Message-ID: <86sfiom4oo.fsf@mail.linkov.net> (raw)
In-Reply-To: <d09786be-2885-b66e-c7cf-da514d07e391@yandex.ru> (Dmitry Gutov's message of "Sat, 12 Nov 2022 03:41:45 +0200")
>> + (display-buffer (list-buffers-noselect arg nil filter-predicate))))
>
> I suppose we'll need an arity check here?
>
> So that this command also works in older emacsen with an install of
> project.el from ELPA.
Ah, I forgot about older emacsen.
> Alternatively, the command could set the value of
> Buffer-menu-filter-predicate inside the resulting buffer, rather than pass
> it as an argument to list-buffers-noselect.
Setting a buffer-local variable looks like a safer option since
Stefan M. warned many times that an arity check is not reliable.
But then need to display buffer twice: first call
list-buffers-noselect without an argument, then
set buffer-local Buffer-menu-filter-predicate,
then programmatically revert the buffer.
next prev parent reply other threads:[~2022-11-12 18:02 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 17:40 bug#59153: List project buffers Juri Linkov
2022-11-09 18:01 ` Eli Zaretskii
2022-11-09 19:22 ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-10 7:56 ` Juri Linkov
2022-11-10 8:56 ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-10 17:59 ` Juri Linkov
2022-11-12 1:41 ` Dmitry Gutov
2022-11-12 18:02 ` Juri Linkov [this message]
2022-11-13 2:37 ` Dmitry Gutov
2022-11-13 17:57 ` Juri Linkov
2022-11-13 22:18 ` Dmitry Gutov
2022-11-15 8:36 ` Juri Linkov
2022-11-15 14:53 ` Dmitry Gutov
2022-11-15 18:55 ` Juri Linkov
2022-11-16 10:16 ` Pankaj Jangid
2022-11-18 7:09 ` Juri Linkov
2022-11-19 18:34 ` Dmitry Gutov
2022-11-19 18:48 ` Juri Linkov
2022-11-19 19:22 ` Dmitry Gutov
2022-11-10 21:21 ` Dmitry Gutov
2022-11-12 1:39 ` Dmitry Gutov
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=86sfiom4oo.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=59153@debbugs.gnu.org \
--cc=akib@disroot.org \
--cc=dgutov@yandex.ru \
/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.