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: Sun, 26 Jun 2022 17:15:02 +0200 (CEST) Message-ID: References: <878rpmasxd.fsf@gmail.com-N5LgcGT----2> <83k095b161.fsf@gnu.org> <87k0943k5u.fsf@gmail.com> <87letjeafl.fsf@gnus.org-N5VXCNa--7-2> Reply-To: carlmarcos@tutanota.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_652698_59130646.1656256502630" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10366"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56198@debbugs.gnu.org, eliz@gnu.org, Visuwesh To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 26 17:17:21 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 1o5U0m-0002UP-Un for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Jun 2022 17:17:21 +0200 Original-Received: from localhost ([::1]:48680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5U0l-00015p-Pw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Jun 2022 11:17:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5TzX-0000gF-Qv for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 11:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5TzX-0006SI-Iq for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 11:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5TzX-0003gm-E7 for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 11:16:03 -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: Sun, 26 Jun 2022 15:16:03 +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.165625651210907 (code B ref 56198); Sun, 26 Jun 2022 15:16:03 +0000 Original-Received: (at 56198) by debbugs.gnu.org; 26 Jun 2022 15:15:12 +0000 Original-Received: from localhost ([127.0.0.1]:48685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5Tyh-0002pX-Iu for submit@debbugs.gnu.org; Sun, 26 Jun 2022 11:15:11 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:34870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5Tyd-0002fq-Vs for 56198@debbugs.gnu.org; Sun, 26 Jun 2022 11:15:10 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 9D465FBF97E; Sun, 26 Jun 2022 15:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1656256502; 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=Th+da8J62R7r95feOwN5Q++M06DDgR8ZTwzQLiyrEaM=; b=KnB4IQY7ne8GPPbe5aWObHEQEZcIy41Z0tEGAy8iNL50g4m7QClFZqQJlq4HjDHQ qwY+NLpsAlC9vtCXI3OU0PnggJ+fM1p6nQIZX9ARZXjgHCr4jp2TNrmBiN1iIkkRDMv Emxm5lsDb/D78k89s/l7+iLGMynodV1uf2JCZfDbWSiH8mU7geo3T8yrity4+UpSym4 cDMoqegAKlRmhkCO++1im1uK+suRq5Rwjd6XzaWYHELNXeHPsHSH59LRz07LQqxyXNe NPvaSV2UvEC+RjVZTosDhj8x8GjkXPtuhkst0GhAfrAjqu8E7B7hy3Mk5yg5xD/PmFS zhU4JJGGAA== In-Reply-To: <87letjeafl.fsf@gnus.org-N5VXCNa--7-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:235352 Archived-At: ------=_Part_652698_59130646.1656256502630 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jun 26, 2022, 15:01 by larsi@gnus.org: > Visuwesh writes: > >> Ah indeed, that would be nice. The following patch does the job for me >> but maybe there's a cleaner way to do this? >> > > [...] > >> - (delete-window (posn-window (event-start click))))) >> + (when (eq (posn-window (event-end click)) >> + (posn-window (event-start click))) >> + (delete-window (posn-window (event-start click)))))) >> > > I think it makes sense to change the behaviour here, but this doesn't > seem to do the trick for me? I.e., on the mode line, and then > moving the pointer out of the mode line, and then releasing it still > deletes the window. > Have made a suggestion to remove the programming or hypertext major-mode na= me in the mode-line.=C2=A0 It is usually understood that programming and hyper= text files use the corresponding mode for the language. > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > ------=_Part_652698_59130646.1656256502630 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Jun 26, 2022, 15:01 by larsi@gnus.org:
Visuwesh <visuweshm@gmail.com> writes:
Ah indeed, that would be nice. The following patch do= es the job for me
but maybe there's a cleaner way to do this?=

[...]
= - (delete-window (posn-window (event-start click)))))
+ = (when (eq (posn-window (event-end click))
+ (po= sn-window (event-start click)))
+ (delete-window (posn-w= indow (event-start click))))))

I = think it makes sense to change the behaviour here, but this doesn't
seem to do the trick for me? I.e., <mouse-3> on the mode line= , and then
moving the pointer out of the mode line, and then = releasing it still
deletes the window.
=

Have made a suggestion to rem= ove the programming or hypertext major-mode name
in the mode-line.  It is usually understood that programming and hype= rtext files use
the corresponding mode for the l= anguage.

--
(domestic pets only, the antidote for o= verdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
=

------=_Part_652698_59130646.1656256502630--