From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: carlmarcos--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56198: Request to delete window with mouse event Date: Wed, 29 Jun 2022 02:15:17 +0200 (CEST) Message-ID: References: Reply-To: carlmarcos@tutanota.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_816014_405805296.1656461717407" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21937"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56198@debbugs.gnu.org, tkk@misasa.okayama-u.ac.jp To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 29 02:16:15 2022 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 1o6LNP-0005Vq-F6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 02:16:15 +0200 Original-Received: from localhost ([::1]:45274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6LNO-0001ls-3O for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 20:16:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6LNC-0001kd-H5 for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 20:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34540) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6LNC-0008DF-98 for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 20:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6LNC-0006Wo-55 for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 20:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: carlmarcos@tutanota.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jun 2022 00:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56198 X-GNU-PR-Package: emacs Original-Received: via spool by 56198-submit@debbugs.gnu.org id=B56198.165646172525043 (code B ref 56198); Wed, 29 Jun 2022 00:16:02 +0000 Original-Received: (at 56198) by debbugs.gnu.org; 29 Jun 2022 00:15:25 +0000 Original-Received: from localhost ([127.0.0.1]:56668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6LMa-0006Vr-U2 for submit@debbugs.gnu.org; Tue, 28 Jun 2022 20:15:25 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:36560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6LMZ-0006Vb-5f for 56198@debbugs.gnu.org; Tue, 28 Jun 2022 20:15:23 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 689EEFBF878; Wed, 29 Jun 2022 00:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1656461717; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=PbUsnlfr5PokhXxVBnzSR5hG7N+vB6flY2jgl9H2buw=; b=xcEE4QAnvJZ8ZpHeZTbWu2WmIM5eO1FT3bb1MLyEKHGUx+NlxVkk/fhonGFOkrOJ t95hXZfNRGx0pHo69ikYcMHNz3k26+OwlVwLJ97xKZl0OtCQgE9Bl3DzeXH1yx96O+G xJ2I8RMUuzn9TfD1FVFThcbB+qxlaFu8bm/RQDG6j6Y++gK9We+1boMfFU8WJTelNAm eISQwUgvcpuBm1NJm8000cirYTuGniB/H4UHL6CMlKLLnSpc2G61Ne+n0xWODQT4KCT MoUR/7xy/drXOnhq50Anie49Byf4cpyu2S5akFofxMs2NTFkIgVkymGwu2ky4Js3ogS wexlEwdv7w== In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:235583 Archived-At: ------=_Part_816014_405805296.1656461717407 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jun 29, 2022, 00:07 by homeros.misasa@gmail.com: >> I frequently split my windows, I usually kill the buffer using the >> menu bar. But this leaves me with the window open with some other >> buffer. Would like to request some facility to delete a window >> (delete-window) using the mouse, as I frequently do for `kill-buffer'. >> Perhaps the capability could be inserted in the window mode-line.=20 >> Where one can usually turn off a minor-mode with the mouse. >> > > How about having `Close' in context menu? > I cannot understand this terminology.=C2=A0 How does one access the context= menu? What is it? > ["Close" > (lambda () (interactive) > (if (one-window-p) > (if (> (length (visible-frame-list)) 1) > (call-interactively 'delete-frame) > (kill-buffer (window-buffer))) ; (quit-window) > (delete-window))) > :help "Remove this window or this frame, or kill this buffer" > :visible (not (region-active-p)) > :active t] > ------=_Part_816014_405805296.1656461717407 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Jun 29, 2022, 00:07 by homeros.misasa@gm= ail.com:
I frequently split my windows, I usually kill the buffer using the
menu bar. But this leaves me with the window open with some other=
buffer. Would like to request some facility to delete a win= dow
(delete-window) using the mouse, as I frequently do for `= kill-buffer'.
Perhaps the capability could be inserted in th= e window mode-line.
Where one can usually turn off a minor-m= ode with the mouse.

How about hav= ing `Close' in context menu?
I cann= ot understand this terminology.  How does one access the context menu?=
What is it?

["Close"
(l= ambda () (interactive)
(if (one-window-p)
(if= (> (length (visible-frame-list)) 1)
(call-interactively = 'delete-frame)
(kill-buffer (window-buffer))) ; (quit-window= )
(delete-window)))
:help "Remove this window= or this frame, or kill this buffer"
:visible (not (region-a= ctive-p))
:active t]

------=_Part_816014_405805296.1656461717407--