From: Philip Kaludercic <philipk@posteo.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Philip Kaludercic <philipk@posteo.net>,
52168@debbugs.gnu.org, Matthias Meulien <orontee@gmail.com>,
Dmitry Gutov <dgutov@yandex.ru>
Subject: bug#52168: 29.0.50; Gnus buffers unexpectedly killed by project-kill-buffers
Date: Tue, 30 Nov 2021 18:52:38 +0000 [thread overview]
Message-ID: <87sfvdmq6h.fsf@posteo.de> (raw)
In-Reply-To: Philip Kaludercic's message of "(unknown date)"
(I'm not sure if my last message got sent out, so I'm sending this again)
Lars Ingebrigtsen <larsi@gnus.org> writes:
>> Lars Ingebrigtsen <larsi@gnus.org> writes:
>>
>>> Matthias Meulien <orontee@gmail.com> writes:
>>>
>>>> 1. Open a "project" file, say emacs in ~/Sources/emacs/lisp/outline.el
>>>> where ~/Sources/emacs contains GNU Emacs sources
>>>>
>>>> 2. From the buffer visiting outline.el, start reading mail with gnus
>>>>
>>>> 3. Switch back to outline.el buffer and call project-kill-buffers
>>>>
>>>> 4. Gnus buffers like *Group*, .newsrc-dribble, etc. are killed. This is
>>>> unexpected.
>>>
>>> I've added Philip and Dmitry to the CCs; perhaps they some comments.
>>
>> The address I used for Philip bounced; trying again with a different
>> address.
To fix issues like this was the intention behind adding
project-kill-buffer-conditions (that is yet to be generalised). What I
believe is happening here is that the *Group* buffer is being matched by
this condition
(and (derived-mode . special-mode)
(not (major-mode . help-mode)))
because `gnus-group-mode' derives `special-mode' via
`gnus-mode'. .newsrc-dribble matches both
buffer-file-name
and
(major-mode . fundamental-mode)
at least on my system. Fixing this specific issue should be possible by
just adjusting project-kill-buffer-conditions, but it is probably
desirable to think about how this can be avoided in general, without
loosing the actual intended functionality of project-kill-buffers.
--
Philip Kaludercic
next prev parent reply other threads:[~2021-11-30 18:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-28 20:54 bug#52168: 29.0.50; Gnus buffers unexpectedly killed by project-kill-buffers Matthias Meulien
2021-11-29 15:27 ` Lars Ingebrigtsen
2021-11-30 13:20 ` Lars Ingebrigtsen
2021-11-30 18:52 ` Philip Kaludercic [this message]
2021-12-01 4:25 ` Lars Ingebrigtsen
2022-11-04 23:01 ` Dmitry Gutov
2022-11-04 22:50 ` Philip Kaludercic
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=87sfvdmq6h.fsf@posteo.de \
--to=philipk@posteo.net \
--cc=52168@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=larsi@gnus.org \
--cc=orontee@gmail.com \
/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.