From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#64619: [PATCH] Add toggle-window-dedicated command Date: Sat, 19 Aug 2023 22:36:45 +0000 Message-ID: <387ee04aa9572975a3cd@heytings.org> References: <87h6ovgnpn.fsf@catern.com> <387ee04aa9601b936ac5@heytings.org> <87350ere4n.fsf@catern.com> <387ee04aa97c3477c4f3@heytings.org> <87zg2mpuv9.fsf@catern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26404"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Spencer Baugh , Philip Kaludercic , 64619@debbugs.gnu.org, martin rudalics , Eli Zaretskii , Drew Adams To: sbaugh@catern.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 20 00:37:16 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 1qXUZH-0006dv-V4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 00:37:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXUZ4-00044m-Gr; Sat, 19 Aug 2023 18:37:02 -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 1qXUZ3-00044d-3i for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 18:37: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 1qXUZ2-0006l1-RX for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 18:37:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXUZ3-0004ux-KD for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 18:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Aug 2023 22:37: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.169248461318886 (code B ref 64619); Sat, 19 Aug 2023 22:37:01 +0000 Original-Received: (at 64619) by debbugs.gnu.org; 19 Aug 2023 22:36:53 +0000 Original-Received: from localhost ([127.0.0.1]:52431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXUYv-0004uY-5w for submit@debbugs.gnu.org; Sat, 19 Aug 2023 18:36:53 -0400 Original-Received: from heytings.org ([95.142.160.155]:45448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXUYr-0004uN-98 for 64619@debbugs.gnu.org; Sat, 19 Aug 2023 18:36:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1692484606; bh=N1Q8THxSDquVz0CdKZNIASZajTkcGYqyeKBmzpSaZvQ=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=ssoOyVLszpChWVDxaE2AzSexqcaQBWErixakBNYp0v8igROuD0wkvpB+oQa2u4/HI fQR2tLml2/iLMuumHkdeVJdFM88CKjdOYLXvJmFEmYf/zcwPN0kSFVz2nTKnDpfhrB DvqQXoYWI2x4Bv4Tt3bkPpSbs95sayhKoIbcEnncdJmzB8Uf4O8bRnYvk0tw/fnCpU lIUYTG6YR9Gq5o3QNTV9lMlYPWkDT8hbB0ATLU1XAi7luhMhDetK1NbZl9DMVneZN7 RW7NJCmECmixccSk2tp+5aJZ4r15NmlDUFDmXKmEeTppmrgvFCjN/gW5Lc2Smylc20 mM9ntNWi9lCNA== In-Reply-To: <87zg2mpuv9.fsf@catern.com> 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:267923 Archived-At: > > 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.