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 #71 received at 64619 <at> debbugs.gnu.org (full text, mbox):

From: Gregory Heytings <gregory <at> heytings.org>
To: sbaugh <at> catern.com
Cc: Spencer Baugh <sbaugh <at> janestreet.com>,
 Philip Kaludercic <philipk <at> posteo.net>, 64619 <at> debbugs.gnu.org,
 martin rudalics <rudalics <at> gmx.at>, Eli Zaretskii <eliz <at> gnu.org>,
 Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#64619: [PATCH] Add toggle-window-dedicated command
Date: Sat, 19 Aug 2023 22:36:45 +0000
>
> In fact, I initially used strong dedication in my patch.  But I found it 
> annoying that I had to turn off strong dedication explicitly if I wanted 
> to switch to another buffer.  That's what made me realize that weak 
> dedication was better.
>

It's not annoying, it's what dedication is for.  It's not more annoying 
than using C-x C-q in a buffer, and later typing something in that buffer 
and realizing (with a similar error message) that it doesn't work: you get 
what you asked.

>
> But C-x b doesn't use display buffer, and instead just errors when the 
> current window is strongly dedicated, which I think is fairly useless 
> behavior; the user reaction is almost always going to be annoyance 
> followed by C-x w d and C-x b again. So I think weak dedication is 
> better.
>

If you think that's annoying, then I'd suggest setting the 
switch-to-buffer-in-dedicated-window configuration option.  It's there for 
a reason, and you can select between no less than four behaviors: one of 
them is likely the one you want.

>
> Eh, I agree with others in that thread, I don't think C-x w d should run 
> delete-buffer. :)
>

I don't know which "others" you have in mind, I do recall that some 
disagreed (is there a single topic on emacs-devel on which no one 
disagrees?), but IIRC at least Lars said that it would be nice to have a 
full repertoire of commands to manage windows under C-x w.

>
> But this does make me think that maybe toggle-window-dedicated should 
> not have a default binding at first.  We can see if people use it and 
> only then give it a binding.  I'm fine with that.
>

I'm fine with that, too.





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

Previous Next


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