GNU bug report logs - #64619
[PATCH] Add toggle-window-dedicated command

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Fri, 14 Jul 2023 15:40:02 UTC

Severity: wishlist

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: sbaugh <at> catern.com
To: martin rudalics <rudalics <at> gmx.at>
Cc: Spencer Baugh <sbaugh <at> janestreet.com>, Eli Zaretskii <eliz <at> gnu.org>,
 64619 <at> debbugs.gnu.org
Subject: Re: bug#64619: [PATCH] Add toggle-window-dedicated command
Date: Sat, 15 Jul 2023 17:41:36 +0000 (UTC)
martin rudalics <rudalics <at> gmx.at> writes:
>>> * lisp/window.el (toggle-window-dedicated): Add.
>>> (window-prefix-map): Add C-x w d binding.
>>
>> Adding Martin.  Martin, any comments?
>
> It should hardly harm anyone.  But what would be a typical scenario for
> using it?

When a window is not dedicated and one wants to make it dedicated, to
affect display-buffer.

> C-x b has 'switch-to-buffer-in-dedicated-window', C-x <left> and
> friends probably should do the same.  Usually a window is marked as
> dedicated to avoid that 'display-buffer' uses it.

Exactly.

> In which case it would likely be better to not mark the window as
> dedicated in the first place - e.g. via a (dedicated . nil) entry in
> `display-buffer-alist'.

Yes, this is about making windows dedicated, not making them not
dedicated.  I implemented it as a toggle only because that seems nicer
to a user who might otherwise make a window dedicated on accident and
not know how to undo it.




This bug report was last modified 1 year and 259 days ago.

Previous Next


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