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: Sat, 25 Jun 2022 09:35:21 +0200 (CEST) Message-ID: References: <878rpmasxd.fsf@gmail.com-N5LgcGT----2> Reply-To: carlmarcos@tutanota.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_604112_2057250056.1656142521460" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28212"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56198@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 25 09:36:22 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 1o50L7-00077I-2B for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 09:36:21 +0200 Original-Received: from localhost ([::1]:60894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o50L5-0006bg-Lx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 03:36:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o50Ko-0006ZC-B0 for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 03:36:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o50Kn-0007KE-UN for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 03:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o50Kn-0003ow-Mq for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 03:36:01 -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: Sat, 25 Jun 2022 07:36:01 +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.165614253114650 (code B ref 56198); Sat, 25 Jun 2022 07:36:01 +0000 Original-Received: (at 56198) by debbugs.gnu.org; 25 Jun 2022 07:35:31 +0000 Original-Received: from localhost ([127.0.0.1]:44054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o50KJ-0003oD-2l for submit@debbugs.gnu.org; Sat, 25 Jun 2022 03:35:31 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:54578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o50KF-0003ny-CL for 56198@debbugs.gnu.org; Sat, 25 Jun 2022 03:35:30 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 845F0FBF8D5; Sat, 25 Jun 2022 07:35:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1656142521; 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=F4ZrshGJSBeNNdiSFVqD+MAtbsgsML0xJILDLKzMUGs=; b=3DNC+R3oiwu5dWASyy13ecN79xZB9ta3dOxhJm4VKvRwb0ShDj/K2Dv+KM/fPfjx zgdxE8SpOW14bLpqgRjP6C2ecgh+muUBYnglgyRusKVJgVQZdeom2YZDeHe1eMvvNDb tNnNdLLX3h3Nnh9h9efJ16ZxuY1hdfG0OuGB8A/FNzFJrgcixFTbS15Q3ztvAPnt3u3 Zp+dk/E5j26yOw4g89gqG3+FDdNbVe9GsdA6d6Gpfe9Ao7JOmv6z3xy8OQJm5kqItrj T8TAUsMGedeoTzZf67KMJY0bzpMUb638PRUmDjpQ4EPlbN8MPtat/Rs2+OpAJ4Idql8 8e3VcKaaFQ== In-Reply-To: <878rpmasxd.fsf@gmail.com-N5LgcGT----2> 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:235236 Archived-At: ------=_Part_604112_2057250056.1656142521460 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable --=20 Sent with Tutanota, enjoy secure & ad-free emails.=20 Jun 24, 2022, 17:10 by visuweshm@gmail.com: > [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF= =82=E0=AE=A9=E0=AF=8D 24, 2022] carlmarcos--- via "Bug reports for GNU Emac= s, the Swiss army knife of text editors" wrote: > >> I frequently split my windows,=C2=A0 I usually kill the buffer using the >> menu bar.=C2=A0 But this leaves me with the window open with some other >> buffer.=C2=A0 Would like to request some facility to delete a window >> (delete-window) using the mouse, as I frequently do for >> `kill-buffer'.=C2=A0 Perhaps the capability could be inserted in the win= dow >> mode-line.=C2=A0 Where=C2=A0 one can usually turn off a minor-mode with = the >> mouse. >> > > I think mouse-3 (i.e., Right Click) on the mode-line does what you want? > However, this does not kill the buffer that shown in the window though > but should be easy enough to change (search for "mouse-delete-window" in > mouse.el). > Was not aware of mouse-3 on mode-line.=C2=A0 Just need to rewove the window= ,=20 without necessarily killing the buffer. Actually, I have noticed a problem with using mouse-3 on mode-line.=C2=A0 S= uppose you push mouse-3 on mode-line, the window is removed without giving me the= =20 possibility to net remove it should I change my mind.=C2=A0=20 It is different behaviour than for instance the mode-line options for minor= -mode, where you can decide not to take any action. ------=_Part_604112_2057250056.1656142521460 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


--
Sent with Tutanota, e= njoy secure & ad-free emails.


<= div>
Jun 24, 2022, 17:10 by visuweshm@gmail.com:
[=E0=AE=B5=E0=AF=86=E0=AE=B3=E0= =AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF=82=E0=AE=A9=E0=AF=8D 24, 2022] car= lmarcos--- via "Bug reports for GNU Emacs, the Swiss army knife of text edi= tors" wrote:
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
(dele= te-window) using the mouse, as I frequently do for
`kill-buff= er'.  Perhaps the capability could be inserted in the window
=
mode-line.  Where  one can usually turn off a minor-mode wit= h the
mouse.

I thin= k mouse-3 (i.e., Right Click) on the mode-line does what you want?
However, this does not kill the buffer that shown in the window thoug= h
but should be easy enough to change (search for "mouse-dele= te-window" in
mouse.el).
Was not aware of mouse-3 on mode-line.  Just need to rewove the wi= ndow,
without necessarily killing the buffer.

Actually, I have noti= ced a problem with using mouse-3 on mode-line.  Suppose
you push mouse-3 on mode-line, the window is removed without g= iving me the
possibility to net remove it shoul= d I change my mind. 

It is different behaviour than for instance the mode-line options fo= r minor-mode,
where you can decide not to take a= ny action.



------=_Part_604112_2057250056.1656142521460--