GNU bug report logs - #47300
delete-window to select window with same position

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sun, 21 Mar 2021 21:15:02 UTC

Severity: minor

Tags: fixed, patch

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 47300 <at> debbugs.gnu.org
Subject: bug#47300: delete-window to select window with same position
Date: Sun, 6 Jun 2021 09:43:47 +0200
>> It's not about "selecting a window", it's about "setting a frame's
>> selected window".
>
> I just tried to keep the prefix `delete-window-...'.
> Then maybe `delete-window-set-selected'?

Not very illustrative either.

>> In general, just plugging in some existing function would usually fail
>> here and I would like to avoid the illusion that it could work.  Also,
>> as you can see with the 'pos' case, some work must be done _before_
>> calling `delete-window-internal' so the actual work would have to be
>> split among two functions at least.
>
> The 'pos' case is an exception.  What I meant is simple cases
> like customizing to 'get-lru-window'.

That one would have to handle the 'no-other-window' parameter.  And we
would have to mix functions and constants as customizable values which
looks queer in the customization interface.

martin





This bug report was last modified 4 years and 36 days ago.

Previous Next


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