From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#58839: [Patch] Re: bug#58839: 29.0.50; project-kill-buffer fails when Eglot is running Date: Mon, 31 Oct 2022 22:51:59 +0000 Message-ID: <87a65bvc6o.fsf@gmail.com> References: <87sfj8umwb.fsf@posteo.net> <87edur3lil.fsf@posteo.net> <87a65f3j40.fsf@posteo.net> <213f3549-de4e-25a7-5e27-d13893e557bc@yandex.ru> <87zgdfwkle.fsf@gmail.com> <8e31a89d-e35e-6dd0-a8e3-f0b9684c8bfa@yandex.ru> <87v8o3wgq1.fsf@gmail.com> <87ilk2x1si.fsf@gmail.com> <871qqq7l9p.fsf@posteo.net> <87eduqwekz.fsf@gmail.com> <87wn8invbx.fsf@posteo.net> <877d0iw8iq.fsf@gmail.com> <837d0hhlke.fsf@gnu.org> <46ff0065-5645-ef1e-2621-242fb6a73f98@yandex.ru> <87v8o0uxn5.fsf@gmail.com> <49cf7edf-afa7-9fce-f4ff-e3af7ad1c02d@yandex.ru> <87k04fvig4.fsf@gmail.com> <5afc446b-3843-8bfc-f51d-713445a9d30f@yandex.ru> 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="10329"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: philipk@posteo.net, 58839@debbugs.gnu.org, manuel.uberti@inventati.org, Eli Zaretskii To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 31 23:51:28 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 1opdct-0002Vu-OI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Oct 2022 23:51:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opdcV-0004Q7-FI; Mon, 31 Oct 2022 18:51:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opdcU-0004NF-Lq for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2022 18:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opdcU-000222-Ej for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2022 18:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opdcU-0004xZ-8l for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2022 18:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Oct 2022 22:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58839 X-GNU-PR-Package: emacs Original-Received: via spool by 58839-submit@debbugs.gnu.org id=B58839.166725665819040 (code B ref 58839); Mon, 31 Oct 2022 22:51:02 +0000 Original-Received: (at 58839) by debbugs.gnu.org; 31 Oct 2022 22:50:58 +0000 Original-Received: from localhost ([127.0.0.1]:42204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opdcP-0004x1-Pn for submit@debbugs.gnu.org; Mon, 31 Oct 2022 18:50:58 -0400 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:36406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opdcO-0004wo-Mh for 58839@debbugs.gnu.org; Mon, 31 Oct 2022 18:50:57 -0400 Original-Received: by mail-wr1-f52.google.com with SMTP id j15so17989083wrq.3 for <58839@debbugs.gnu.org>; Mon, 31 Oct 2022 15:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HfDjTwcYtq2bAiely7jwUrRiOLW3bm8lz0i+fgxZiDw=; b=MbQ8j4+UL3RYx/7vApv/pOb0CASx0/1t4S5tfhx1yh/P3LssVjvlfImPcrXuQqH4bz XiNR4zoNhbAm9j5A28F5C1WMHHd+j8ifk6sR27N3wX9AiU82FQRGQEUBIaQwhp1DLSAm 5kYzlmqMNfzb+QrqZFuUmBC2STqEZvD1Q92C+cV4HJGb6g85otE4VDoIjoYp0GNHNVIF oYtqVH5uckhITx53qQ0c9yMAfK4diy3bw8QahaYK/kzWDq7Xb4ScBRwvkaNyUzSnXXPO 8wXWQTmbakQHUDaj0SYQXOXYPLyhotPr8ReR8R6lSzOVoMxWSNWEL9R2bzi5/JlPlfDP 7GCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HfDjTwcYtq2bAiely7jwUrRiOLW3bm8lz0i+fgxZiDw=; b=UD3eJTCl81Azm7U8NEVXOx2BFh+rqvJA/5KKuShKhT1NWfnuwVikJ2gY4rlIZeXQWP D2BtLxxbaXMkODLxoWN42tOf1WyRT7yo2ehg8tx6OnJOemkwE6kPFwg0LuXqWCFcNc6e hE0df0frtdwPleulWlY4GF3xbOSR2aDJVRD1KdA5jjdFQ6KnBBT6fwqLgrk6Q/rZP98L +j8O670m19jQD7L3r8BgYLB2JYM9eRAqqcYiMWfqZr928Cd8swDIRj9aoHhT7SYHdSnw 5etdHgD3zwQcuXgeM6iMNEeE2q7m6SsFb5Inb+cl/7x7GUM17fc1ZNrSugpYGrPyDCSg oGEw== X-Gm-Message-State: ACrzQf0u+0ERJKdhCDiHZ8Y4XywdMABUNoQKu63Zc6XTC6+WtYM38QH3 Z+S8Col2BwnwyZHA4bcl5xlIG5p1xGo= X-Google-Smtp-Source: AMsMyM7izrjgEO7Jr6qYFMn1HxK4JrLZurzvOkgM8fxSocbS+vhKiwgRHckEuGaK9CgkVunHuVRa5A== X-Received: by 2002:a5d:4889:0:b0:22b:214:38dd with SMTP id g9-20020a5d4889000000b0022b021438ddmr10117009wrq.32.1667256650679; Mon, 31 Oct 2022 15:50:50 -0700 (PDT) Original-Received: from krug (87-196-74-163.net.novis.pt. [87.196.74.163]) by smtp.gmail.com with ESMTPSA id u6-20020a05600c19c600b003c6f8d30e40sm8942207wmq.31.2022.10.31.15.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 15:50:50 -0700 (PDT) In-Reply-To: <5afc446b-3843-8bfc-f51d-713445a9d30f@yandex.ru> (Dmitry Gutov's message of "Tue, 1 Nov 2022 00:26:43 +0200") 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246728 Archived-At: Dmitry Gutov writes: > On 31.10.2022 22:36, Jo=C3=A3o T=C3=A1vora wrote: >> Dmitry Gutov writes: >>=20 >>> On 31.10.2022 13:56, Jo=C3=A3o T=C3=A1vora wrote: >>>> On Mon, Oct 31, 2022 at 9:52 AM Jo=C3=A3o T=C3=A1vora >>> > wrote: >>>> > In the little time I've used this feature since the start of this >>>> > discussion I have discovered it backfires no small number of occas= ions: >>>> > Eglot, CIDER,*scratch*,*ielm*,*sly-scratch*,*Completions*,...=C2= =A0 Heck >>>> > even*ibuffer* itself is targeted by this. >>>> And you can add the gnus mail buffers to this list. If you are >>>> unlucky >>>> enough to start M-x gnus from a project file to read your email, then >>>> closing that project in the future will take your gnus session, your >>>> summary buffers, messages, etc. with it.=C2=A0 This can't possibly be = considered >>>> an exotic use case, and can't be right. >>> Does Gnus use fundamental-mode for some of its important buffers? >> No idea. gnus-summary-modes is one of the modes >> Try: >> emacs -Q >> C-x C-f some/file/in/a/project/foo.c >> M-x gnus ; Remember to check your email >> ; read mail, make searches, etc >> C-x b foo.c ; go back to the file >> C-x p k ; Get preposterous confirmation prompt about tens of buffers abo= ut to be killed >> ; say yes, bye all those emails > > I suppose it might match > > (and (derived-mode . special-mode) > (not (major-mode . help-mode))) > > then. Whatever it's doing, it's completely wrong and must be fixed. It probably break other email clients too. Jo=C3=A3o