GNU bug report logs - #79065
31.0.50; [PATCH] Allow inverting the meaning of 'quit-window-kill-buffer'

Previous Next

Package: emacs;

Reported by: Jim Porter <jporterbugs <at> gmail.com>

Date: Mon, 21 Jul 2025 05:24:02 UTC

Severity: normal

Tags: patch

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Jim Porter <jporterbugs <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>, 79065 <at> debbugs.gnu.org
Subject: bug#79065: 31.0.50; [PATCH] Allow inverting the meaning of 'quit-window-kill-buffer'
Date: Mon, 28 Jul 2025 20:17:42 +0300
>> For example, 'windmove-display-no-select' has the same purpose,
>> but avoids the symbol 'invert' by using:
>>
>>    (xor (consp arg) windmove-display-no-select)
>>
>> Would it be possible to use the same logic here?
>
> The problem with 'quit-window-kill-buffer' is that it also can be a list
> of major modes.  What should 'invert' or 'xor' with or without a prefix
> argument produce in such a case?  Kill the buffer if it is a member of
> that list, kill it if it not a member of that list ...

Usually a per-mode value is defined by mode hooks like

  (add-hook 'Info-mode-hook (lambda () (setq-local quit-window-kill-buffer t)))

Then the prefix argument will invert the buffer-local value.




This bug report was last modified 51 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.