From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#56198: Request to delete window with mouse event Date: Sat, 25 Jun 2022 13:44:03 +0530 Message-ID: <878rpl17or.fsf@gmail.com> References: <878rpmasxd.fsf@gmail.com-N5LgcGT----2> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2417"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56198@debbugs.gnu.org To: carlmarcos@tutanota.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 25 10:15:34 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 1o50x3-0000R3-VD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 10:15:33 +0200 Original-Received: from localhost ([::1]:45336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o50x2-00011U-GR for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 04:15:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o50wc-00010P-61 for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 04:15:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o50wY-0002xM-Rl for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 04:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o50wY-0004l9-LD for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 04:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jun 2022 08:15: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.165614486418231 (code B ref 56198); Sat, 25 Jun 2022 08:15:02 +0000 Original-Received: (at 56198) by debbugs.gnu.org; 25 Jun 2022 08:14:24 +0000 Original-Received: from localhost ([127.0.0.1]:44065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o50vw-0004jz-0q for submit@debbugs.gnu.org; Sat, 25 Jun 2022 04:14:24 -0400 Original-Received: from mail-pf1-f194.google.com ([209.85.210.194]:34498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o50vt-0004jm-Ii for 56198@debbugs.gnu.org; Sat, 25 Jun 2022 04:14:22 -0400 Original-Received: by mail-pf1-f194.google.com with SMTP id t21so4519067pfq.1 for <56198@debbugs.gnu.org>; Sat, 25 Jun 2022 01:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:date:lines:references:user-agent :message-id:mime-version:content-transfer-encoding; bh=vnOQgh4YPsyJn6ugTszlbc22hyv9XTvjZevoVcNFR5Y=; b=UB+eAkH5SOGO8q/cEdgwRThJtfTShlGQk9rbt48BaPTCRvokQIEjuQkeVX3doNHH6B QpEOKKeu5nGjD0LGpBxAPKtYMRJvQ50WT1Zme3LxMzhkqwGdtK7crdml+sBdZjvtl3Av LtV4DA2LV2YvV6gtIJB2voWo6olRQ216/0fuWJ8SvaZ8J4RtOjEU0swDYWddt+lXreqA jhwsXIPsfph4wLW0SZ+s3pF447Kl14eArtZc8gPU8Sfw8o2rD9EPihNK3pQHRRgUyk9R Jm6UCfXrGdtJTviTLcAhzQuJhfJ9qNgMY/TvC5LdV9S+LQ27JZxGGc1gCacqKtYoXSme duyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:lines :references:user-agent:message-id:mime-version :content-transfer-encoding; bh=vnOQgh4YPsyJn6ugTszlbc22hyv9XTvjZevoVcNFR5Y=; b=MSofx0AiE4KQ2/EM7HKa8dneYI8JIf1E2h1wH5umX0vSVoB3VZBNg/tOZsPg7PO6di pMdsQC3VrWvyvZG1ZZIH1B1wE2MX44eTGM7o4jSahTrLtwG8bgGe4PxOhkX9M2EXuY4x WC1zCTGYScvOFXZCYWdwfQLCsvVno6BrRUOXaiKy29i5ViaS64GvcjMY4NmW3G9WMn0k OaOrIg3HSJuuSHQgZfWQvg063yxi6YfTQod/qOILU8hXonwhacVgQQA9MicNIr+2etXG 7/MB+m6D7xPdN3P0HJPjCiKgTMKKoPDOp4wHaGRHOwiMP8ltdBpDxGSS7TbXLoRl8+dJ AsLQ== X-Gm-Message-State: AJIora/caUSo90eY11SVlyYEAlLucXOjAqTuDUs9iSTzKbuTUZrzrtW7 ApBC5pdIIq1IdfhMTYxRN0E= X-Google-Smtp-Source: AGRyM1vsX74whbH1UaPqjvn3OBgvilHzA1kXCEHpaNaC7y10RHZlu9iYvMrkZpgYRLMigd6WUxD0FA== X-Received: by 2002:a63:b00e:0:b0:40c:c685:d45 with SMTP id h14-20020a63b00e000000b0040cc6850d45mr2707020pgf.494.1656144855555; Sat, 25 Jun 2022 01:14:15 -0700 (PDT) Original-Received: from localhost ([49.204.119.36]) by smtp.gmail.com with ESMTPSA id c16-20020a056a00009000b0051c1b445094sm3089870pfj.7.2022.06.25.01.14.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 01:14:14 -0700 (PDT) In-Reply-To: (carlmarcos@tutanota.com's message of "Sat, 25 Jun 2022 09:35:21 +0200 (CEST)") Original-Lines: 39 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:235238 Archived-At: [=E0=AE=9A=E0=AE=A9=E0=AE=BF =E0=AE=9C=E0=AF=82=E0=AE=A9=E0=AF=8D 25, 2022]= carlmarcos@tutanota.com wrote: > 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, 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. Where 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. 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. Supp= ose > you push mouse-3 on mode-line, the window is removed without giving me th= e=20 > possibility to net remove it should I change my mind.=20=20 > > It is different behaviour than for instance the mode-line options for min= or-mode, > where you can decide not to take any action. For this, I have winner-mode enabled. Should I regret my choice, I simply say M-x winner-undo RET. Granted, this requires the keyboard but this is not a frequent problem for me to care enough.