From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: Ergus <spacibba@aol.com>
Newsgroups: gmane.emacs.devel
Subject: Re: Quit and Close Emacs Special Windows
Date: Mon, 29 Jun 2020 19:22:47 +0200
Message-ID: <20200629172230.mpm4ahvj2wm7ak5k@ergus>
References: <87ftaej5pp.fsf.ref@ergus.i-did-not-set--mail-host-address--so-tickle-me>
 <87ftaej5pp.fsf@ergus.i-did-not-set--mail-host-address--so-tickle-me>
 <3c578050-2a23-411e-bad0-c26a7c7ed5ee@default>
 <20200629164524.y74lx5xgdomfj25b@ergus>
 <f9f1c135-5cc7-4e45-9c4c-8f332f8db4f3@default>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
	logging-data="124333"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: NeoMutt/20180716
Cc: emacs-devel@gnu.org
To: Drew Adams <drew.adams@oracle.com>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 29 19:23:28 2020
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1jpxVA-000WGQ-Nw
	for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Jun 2020 19:23:28 +0200
Original-Received: from localhost ([::1]:36672 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1jpxV9-0000i1-Qr
	for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Jun 2020 13:23:27 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39032)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <spacibba@aol.com>) id 1jpxUe-0000By-9t
 for emacs-devel@gnu.org; Mon, 29 Jun 2020 13:22:56 -0400
Original-Received: from sonic315-13.consmr.mail.bf2.yahoo.com ([74.6.134.123]:34770)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <spacibba@aol.com>) id 1jpxUb-00062d-F0
 for emacs-devel@gnu.org; Mon, 29 Jun 2020 13:22:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048;
 t=1593451371; bh=AifhLennxC3efD4+ZQ+lOII3K/+n3+++LZSB83Y9d34=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject;
 b=QACMJ3rQb+6E+I9f91AwlB35b/BAm4J/PpA57KYwNqNEbpKIInK/WiGwBthheR2B1qQgen4DFCAZH+nZ4xyguLQjumV8sjQyOp8JN6qY9BfD9+Tf3w+jpHotNrMN5rUBav5tAR35r4/sKQPTqIM8SHsv6vEcOASHk9CoYiWyWHC0LPI4k39V5NzicLhwO8Z+I4+24gX5dVxzplEn4lPG+eeH8YQZgadh+kAJtpQeNZw09DuFYGAmR21xfmmb63Gwvs3uNxsgT51L30Y4lylqTGOCi+spRHZT7t4bjlhhFRfw+z7hdS0WK4jGIAgawyguJzyHSHaMEbkIEUnbbU/Oow==
X-YMail-OSG: 1CtajCAVM1mpD26kNrdbKqjzJeR_QwyaPVSA8xdu7dGlrvmopwAE6jzfyxfiQ7L
 jUO.35pco4rAnXl69VN4.nCJN1zlI7_hF258sd3JI2oFou0quGRPoMoX3cYV3REpfRi8NCi4nkdd
 x_RZWEC8AAksbTbAGKq.OeLneZHcUnAFaqR7DULYLCgljzk72Ll5Y_Fy5BEBF41xjIpXx.bO0u3Z
 wPqpBffPyXuIt.RJBAqR6QxqWp287C3NhmhZb9r55ON5LmoATubsaO1VUWS4OseFrxYIXKuu8at2
 15NtWrsnwc9LiceRJDIcgxBTJCro0bOc5Z1_oyNFT485.jSiC5yeL.AAYkZmGCet9mhnTZwCEa3B
 U5WZYRm2H52fXmb9uoW_RJoXA9ewE4u5LyJWLJeGa3zVWIKGby26C34tB95sNls90wa_tbNcINus
 iiECuFi444hFkS56PkpQRSX_Gg2SGB_xvEPOArMG9D799Il4Bmcq9jg.HDvtaGzu902EepRGs.Lk
 k5v3Z8lrIjqq4qnvuJZm4G.tjiA0TFC.W9zfs4veWq1A028JprBl0gavqdkt7nLWbWRKE69YF2iG
 fDBYgheu._cckXrwlJBoSeqcqrwaPD8q2EF44BSi2HNfQDB8uY4yACBz5Ohei6FOnj1G2.k2TjDr
 za7j7xoiaqBH0KXylTqj2h1JutXGOndXelVGjV_mDd1vDVDv3MXMnsHD2yd3DkOG5MWlVod2DvhD
 3w6_hO9PL517jRmfnTSfssfuzf_JTpTjTODQpspv62wTlvIvE_7PE9PNxXFWHP4ORJ2ylis_dzYc
 Fw0x.aKp46gmv7GG_vpWWI3RHE8EAnKBMPy.yAdrzP 
Original-Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic315.consmr.mail.bf2.yahoo.com with HTTP; Mon, 29 Jun 2020 17:22:51 +0000
Original-Received: by smtp425.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA
 ID 013e49fe4bed0371275a97e5bd62cfd0; 
 Mon, 29 Jun 2020 17:22:48 +0000 (UTC)
Content-Disposition: inline
In-Reply-To: <f9f1c135-5cc7-4e45-9c4c-8f332f8db4f3@default>
X-Mailer: WebService/1.1.16138 hermes_aol Apache-HttpAsyncClient/4.1.4
 (Java/11.0.7)
Received-SPF: pass client-ip=74.6.134.123; envelope-from=spacibba@aol.com;
 helo=sonic315-13.consmr.mail.bf2.yahoo.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/29 11:56:41
X-ACL-Warn: Detected OS   = Linux 3.1-3.10 [fuzzy]
X-Spam_score_int: -30
X-Spam_score: -3.1
X-Spam_bar: ---
X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:252571
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/252571>

On Mon, Jun 29, 2020 at 05:00:01PM +0000, Drew Adams wrote:
>
>No idea; sorry.  I'm just saying what I do.
>
>The definition of `quit-window-delete' that I use
>has this comment:
>
> ;; Candidate as a replacement for `quit-window',
> ;; at least when used interactively.  For example:
> ;; (define-key global-map [remap quit-window] 'quit-window-delete)
> ;;
> ;; Thanks to Martin Rudalics for suggestions.
>
>Someone else will need to make changes to Emacs, if
>such is decided.
>
>The things I mentioned don't necessarily belong
>together for others.  For me they make sense together.
>
>For example, making buffers `*...*' special-display
>is unrelated to quitting help buffers with `q'.
>
I tried your code for making buffers `*...*' special-display and as I
only use -nw the behavior is not good. The first time I call commands
like `man' nothing happens in the front but the buffer starts in the
backend.

In gui the behavior is fine as expected.

>But for me it makes sense.  I show all such buffers
>in their own dedicated window (frame, in fact), and
>when I use `q' to quit the buffer I want to delete
>the frame.  I imagine that at least some others won't
>want such behavior.
>
>Do I think that it would be good to have a simple way
>to get `q' to delete the window?  Yes.  Do I think it
>would be good to have a simple way for `q' to delete
>a one-window frame?  Yes.  But someone else will need
>to think about and decide whether that's helpful in
>general and, if so, what's the best way to offer it.

I think that with a simple variable and an `or` in the condition will be
good enough (something like quit-always-kill or so).

The only corned case I can imagine so far is the case where quit-window
is not called from `q' in not *...* buffers. But I don't know if that
even happen.

Hopefully someone will come with a better solution...

Best,
Ergus.