From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.bugs Subject: bug#56198: Request to delete window with mouse event Date: Wed, 29 Jun 2022 09:07:22 +0900 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24719"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) Cc: carlmarcos@tutanota.com, tkk@misasa.okayama-u.ac.jp To: 56198@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 29 02:08:14 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 1o6LFd-0006Ev-Dg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 02:08:13 +0200 Original-Received: from localhost ([::1]:43376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6LFb-0007Nh-Gn for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 20:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6LFS-0007MS-N7 for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 20:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6LFS-00070X-DV for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 20:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6LFR-0006KE-Vl for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 20:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tak Kunihiro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jun 2022 00:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56198 X-GNU-PR-Package: emacs X-Debbugs-Original-To: carlmarcos--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 56198@debbugs.gnu.org, carlmarcos@tutanota.com, tkk@misasa.okayama-u.ac.jp Original-Received: via spool by 56198-submit@debbugs.gnu.org id=B56198.165646125424259 (code B ref 56198); Wed, 29 Jun 2022 00:08:01 +0000 Original-Received: (at 56198) by debbugs.gnu.org; 29 Jun 2022 00:07:34 +0000 Original-Received: from localhost ([127.0.0.1]:56651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6LF0-0006JD-F1 for submit@debbugs.gnu.org; Tue, 28 Jun 2022 20:07:34 -0400 Original-Received: from mail-pg1-f176.google.com ([209.85.215.176]:44673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6LEy-0006Iy-F0 for 56198@debbugs.gnu.org; Tue, 28 Jun 2022 20:07:33 -0400 Original-Received: by mail-pg1-f176.google.com with SMTP id v126so9519034pgv.11 for <56198@debbugs.gnu.org>; Tue, 28 Jun 2022 17:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Gjt43y8wmHlTiJgh/RHl4Q1My+Ea9GnAxE3oCbgvdn0=; b=j8yrGSlh9JqvRDFEj8WhyRAqkFYZ0OIqFDIlQMpPwvr4/xfaciNXI/epKHgpapM96o iv4XM4yhlDGkgirpgN5T0lmXKIUp+BmU85Gd+3SKarCeQQqL41irAEng1t/K767ZCOYc w3aB9SBNEysJbAhs0M7CibM7wyLH7h/hRciKOputOwD64hWhFr+SF0ML6jqapnpIxD/v n3CRathqU0Ji3vWDM+ncFS5dP6EhY/TpPQ0+WDriDbVclfYa3qGeGG8RU67QWniU0LnQ yZBDpfPMtJ6lIdocra3S4Ljaj5Qa86r8VBsq9Nl1WRhHL2F8MzMDU5XF1j2vN+gJaAb1 Qxaw== 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:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Gjt43y8wmHlTiJgh/RHl4Q1My+Ea9GnAxE3oCbgvdn0=; b=dYnBpoYwORGJbQbeLaAF2hZqjJX+j58KcuRn3t4HV80M78gis81HX828+LDxBuQxCp xg+RseDQ3gOhnRId/2wgNWiunBk6EpFETFzpbQcs1iA81u7+DR2unSEpq0KRVKSl/Voj vjUXanH+FziYct+7a77fV38jxdJ5YTHOC2lB/m5ptaWZ3jePb/KgUgOg0d2jB9DDNVOt 8A7+rfLXovQ9jYqMgKFGSUPNHdg+RkGpJuRaHi9Zx7lFgbV5vkTn31hy7pdnGG95/cfO OTpG9t3XVBvZkGzwIlcld3Ev/6Q8n9VbVSBajJHNmCyV6TtkcavIaFDc7KIZke6vbaEf QCYg== X-Gm-Message-State: AJIora/GfgS0gFp5A0ENP59cA4+m6qUqiZAuSHMZqSOGah5hwBRaWL7v HyKa+PT0ITmCB/SUyrXNCys= X-Google-Smtp-Source: AGRyM1tMWiWZNHM2cYnxacbEla7PWRISjiQXVSCvaXBPIj03MggCFWQBbrB0UImyaNt6sGegTEi5uw== X-Received: by 2002:a63:824a:0:b0:40d:5d8e:c266 with SMTP id w71-20020a63824a000000b0040d5d8ec266mr499378pgd.238.1656461246661; Tue, 28 Jun 2022 17:07:26 -0700 (PDT) Original-Received: from DreamMini2019.local ([150.46.201.82]) by smtp.gmail.com with ESMTPSA id k21-20020a6568d5000000b0040d5abae51esm9840180pgt.91.2022.06.28.17.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 17:07:26 -0700 (PDT) X-Google-Original-From: Tak Kunihiro In-Reply-To: (carlmarcos's message of "Fri, 24 Jun 2022 17:27:23 +0200 (CEST)") 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:235581 Archived-At: > 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. How about having `Close' in context menu? ["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]