GNU bug report logs -
#54296
Add buffer-matching functionality
Previous Next
Reported by: Philip Kaludercic <philipk <at> posteo.net>
Date: Mon, 7 Mar 2022 22:34:02 UTC
Severity: normal
Tags: patch
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Mon, 13 Jun 2022 03:23:47 +0300
> Cc: 54296 <at> debbugs.gnu.org, larsi <at> gnus.org
> From: Dmitry Gutov <dgutov <at> yandex.ru>
>
> On 14.03.2022 05:21, Eli Zaretskii wrote:
> > I still don't think I understand why it is so
> > important that we should provide a special case for it.
>
> It's pretty valuable to be able to provide a default value of
> project-kill-buffer-conditions which can be read at a glance (including
> in compiled Emacs) and easily edited via customize-variable by a user
> with little to no knowledge of Elisp.
>
> And 'major-mode' was used twice inside project-kill-buffer-conditions,
> not just once.
I think I lost context, so please bear with me.
My "still don't think I understand" comment was about the need to
support major-mode when apparently the _only_ user of that is
fundamental-mode, where we cannot use derived-mode instead. If indeed
fundamental-mode is the only case where major-mode is useful, I asked
why not use a predicate that tests explicitly for that case.
And if I understand your reasoning above, then doesn't
(eq major-mode 'fundamental-mode)
provide an easy default that can be read at a glance?
Or what am I missing?
This bug report was last modified 2 years and 339 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.