all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Akib Azmain Turja via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: 59153@debbugs.gnu.org
Subject: bug#59153: List project buffers
Date: Thu, 10 Nov 2022 14:56:53 +0600	[thread overview]
Message-ID: <87bkpfjiga.fsf@disroot.org> (raw)
In-Reply-To: <8635arqllm.fsf@mail.linkov.net> (Juri Linkov's message of "Thu,  10 Nov 2022 09:56:01 +0200")

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

Juri Linkov <juri@linkov.net> writes:

>>> +         (bufs (mapcan
>>> +                (lambda (buf)
>>> +                  (when (and (project--buffer-check buf '("\\`[^ ]"))
>>> +                             (or (not arg)
>>> +                                 (project--buffer-check buf '(buffer-file-name))))
>>> +                    (list buf)))
>>> +                (project-buffers pr))))
>>> +    (display-buffer (list-buffers-noselect arg bufs))))
>>
>> This won't survive a revert buffer, I think.  (I'll show all buffers
>> then.)
>
> This means that all uses of the BUFFER-LIST arg of 'list-buffers-noselect'
> are flawed.  So better would be to provide not a list of buffers, but
> a predicate to filter out a list of buffers.  Then the revert could use
> such a predicate from e.g. a buffer-local variable.

I just modify the tabulated-list-revert-hook buffer-locally.

-- 
Akib Azmain Turja --- https://akib.codeberg.page/
GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
Fediverse: akib@hostux.social, Codeberg: akib
emailselfdefense.fsf.org | "Nothing can be secure without encryption."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2022-11-10  8:56 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 [this message]
2022-11-10 17:59     ` Juri Linkov
2022-11-12  1:41       ` Dmitry Gutov
2022-11-12 18:02         ` Juri Linkov
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=87bkpfjiga.fsf@disroot.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=59153@debbugs.gnu.org \
    --cc=akib@disroot.org \
    --cc=juri@linkov.net \
    /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.