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 11:54:40 +0300 Message-ID: <83ttsuw0tr.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> <83edjyxmuz.fsf@gnu.org> <22de08b62bd05dc884c9@heytings.org> <83wmxqw1xf.fsf@gnu.org> <22de08b62bfcc659fbd6@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31596"; 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 10:55:19 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 1qXeDP-00082X-LW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 10:55:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXeD9-0005hd-D2; Sun, 20 Aug 2023 04:55:03 -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 1qXeD6-0005hE-OL for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 04:55:00 -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 1qXeD6-0008IE-EX for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 04:55:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXeD7-0004sY-Sq for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 04:55:01 -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 08:55:01 +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.169252167818710 (code B ref 64619); Sun, 20 Aug 2023 08:55:01 +0000 Original-Received: (at 64619) by debbugs.gnu.org; 20 Aug 2023 08:54:38 +0000 Original-Received: from localhost ([127.0.0.1]:53089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXeCj-0004ri-JD for submit@debbugs.gnu.org; Sun, 20 Aug 2023 04:54:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXeCh-0004rM-0a for 64619@debbugs.gnu.org; Sun, 20 Aug 2023 04:54:36 -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 1qXeCY-0008EP-Ki; Sun, 20 Aug 2023 04:54:26 -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=hF/7rUmaJiWG3W6fIT/Q6+SWFZ+PWtxAe8h/3yy3QaM=; b=BTDTyS5eJnA6 M/80qEVQijrHrJsYpeQE5CpQPvQGSvgMvElQEkhGmHxif6UzS52dumGVkFvUtf6v6KRF3ifOvCNXf vBBQEmATBboCy524KE7GHK6+xV2srwlfvbncOZMN/b9YAKFq3sfIs7cU06+YsXA5KCVVmTYEGIS4C BnniGBgDBEKsJ2y8R2MoS2dvjj/aJHbwpy12bAyfXfkB7ZQITw/fh25og/D3MQLnI1KXKeokaCuuB JJSddMndJ4Mwp52c8Ovj0bm7O+qMzjSjNCGvL1NEf/0kXUFH6fAI6qdvbT6GOYXJMPEGrreY2At2m bvvdSKA26JbCYw/2/Rpwmg==; In-Reply-To: <22de08b62bfcc659fbd6@heytings.org> (message from Gregory Heytings on Sun, 20 Aug 2023 08:41:50 +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:267971 Archived-At: > Date: Sun, 20 Aug 2023 08:41:50 +0000 > From: Gregory Heytings > cc: 64619@debbugs.gnu.org, philipk@posteo.net, sbaugh@janestreet.com, > sbaugh@catern.com, rudalics@gmx.at, drew.adams@oracle.com > > >> IMO it would be much cleaner to just strongly dedicate the window in > >> toggle-window-dedicated, and to add a note in its docstring pointing to > >> switch-to-buffer-in-dedicated-window and explaining that that option > >> should be used to decide what happens with C-x b. > > > > So you are saying that opinions of people who disagree with you should > > be simply disregarded? > > Hmmm... no. Where do you see that? I'm simply saying that a user option > to control how C-x b behaves with a (strongly) dedicated window already > exists, which means that the behavior that Spencer found annoying can > already be tweaked, and that it is not necessary to add yet another user > option to control that behavior. A user who didn't customize switch-to-buffer-in-dedicated-window does not necessarily want his/her dedicated windows to be strongly dedicated by default. Which is why one of the alternatives I suggested is to use the value of that variable as the indication which kind of dedication to use by default.