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


Message #26 received at 79065 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>, Eli Zaretskii <eliz <at> gnu.org>
Cc: Jim Porter <jporterbugs <at> gmail.com>, 79065 <at> debbugs.gnu.org
Subject: Re: bug#79065: 31.0.50; [PATCH] Allow inverting the meaning of
 'quit-window-kill-buffer'
Date: Mon, 28 Jul 2025 09:18:42 +0200
> 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 ...

martin




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.