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


View this message in rfc822 format

From: Gregory Heytings <gregory <at> heytings.org>
To: sbaugh <at> catern.com
Cc: 64619 <at> debbugs.gnu.org, philipk <at> posteo.net, sbaugh <at> janestreet.com, rudalics <at> gmx.at, Eli Zaretskii <eliz <at> gnu.org>, drew.adams <at> oracle.com
Subject: bug#64619: [PATCH] Add toggle-window-dedicated command
Date: Sun, 20 Aug 2023 21:56:45 +0000
>
> I didn't know about switch-to-buffer-in-dedicated-window.  It does 
> resolve the basic annoyance I described, of C-x b not working.
>

Great!

>
> But, it affects all windows, not just ones that have been interactively 
> dedicated by the user.
>

Indeed, that option is used for C-x b in all dedicated windows.

>
> I personally have just set switch-to-buffer-in-dedicated-window to 
> `pop', so that C-x b works when I happen to be in a window which was 
> made strongly dedicated by a Lisp program.  But for windows which I 
> interactively choose to dedicate with toggle-window-dedicated, I think 
> I'd prefer the `t' behavior.  Which is effectively what we have now by 
> weakly dedicating the window.
>

It is wise to go into such refinements for a new command that, as Eli 
says, is a bit borderline?  Right now window dedication is not even 
mentioned in the Emacs manual.  Perhaps a new value for 
switch-to-buffer-in-dedicated-window, which would prompt the user and 
offer them the choice to either display the buffer in the current window 
or in another window, would be enough (and more generally useful)?





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.