From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64619: [PATCH] Add toggle-window-dedicated command Date: Sun, 20 Aug 2023 09:13:24 +0300 Message-ID: <83edjyxmuz.fsf@gnu.org> References: <87h6ovgnpn.fsf@catern.com> <387ee04aa9601b936ac5@heytings.org> <87350ere4n.fsf@catern.com> <387ee04aa97c3477c4f3@heytings.org> <87zg2mpuv9.fsf@catern.com> <387ee04aa9572975a3cd@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11348"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64619@debbugs.gnu.org, philipk@posteo.net, sbaugh@janestreet.com, sbaugh@catern.com, rudalics@gmx.at, drew.adams@oracle.com To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 20 08:14:09 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qXbhR-0002mF-JE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 08:14:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXbhM-0007F7-3T; Sun, 20 Aug 2023 02:14:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXbhJ-0007Dk-NH for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:14:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXbhJ-0002e5-Et for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXbhK-0000Kp-Rh for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Aug 2023 06:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64619 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 64619-submit@debbugs.gnu.org id=B64619.16925120001209 (code B ref 64619); Sun, 20 Aug 2023 06:14:02 +0000 Original-Received: (at 64619) by debbugs.gnu.org; 20 Aug 2023 06:13:20 +0000 Original-Received: from localhost ([127.0.0.1]:52749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXbge-0000JR-8a for submit@debbugs.gnu.org; Sun, 20 Aug 2023 02:13:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXbgc-0000JD-I6 for 64619@debbugs.gnu.org; Sun, 20 Aug 2023 02:13:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXbgU-0002Zz-CL; Sun, 20 Aug 2023 02:13:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=1XDSzF5pl9g0TJud0LDXe7p26xwJoFnI3pXFWSy7M88=; b=ZmiLnyIr0Q61 PL7XFVCtCtNgRCOwO1EJN571dLko12CyK4xr/H0A/QknRi6L7jfeLiBD+TwhzJBCPtT3ChItne+B2 Q3U7UhhIZy7ruK7IIV/AyNHMLtqRKQ+XBT8GESwdaYD9YTkPgbQNV0NXRvGHNczhvLVIr3Wh1UniC DxcyOEi+Kh+LN9u/JcrAsQJ7NDb6WT4w4VoUaQcBL9TxteOsLoGMOxXOzTBNZfRq5QrdXOjQ1f7jy Cmk2tU0SH1FaiBAlp6IyKBKwcHIv3g5hN76ZBESMtA43aB20/uKQzMtUnDmN3C4Hjj2XFJpg9TDvy YlggiCrjuMEbqzAxqH6rwg==; In-Reply-To: <387ee04aa9572975a3cd@heytings.org> (message from Gregory Heytings on Sat, 19 Aug 2023 22:36:45 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267945 Archived-At: > Date: Sat, 19 Aug 2023 22:36:45 +0000 > From: Gregory Heytings > cc: Spencer Baugh , > Philip Kaludercic , 64619@debbugs.gnu.org, > martin rudalics , Eli Zaretskii , > Drew Adams > > > > > > 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. I think the reason that people disagree about the details is because they have different use cases for this feature in mind. To reconcile these two opinions, we could introduce a user option which would invert the default: make strongly-dedicated the default and weekly-dedicated the optional kind requiring C-u. Alternatively, we could use switch-to-buffer-in-dedicated-window as that user option: if the user sets it non-nil, we could take that as an indication that they prefer the strongly-dedicated default. WDYT?