From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#58839: [Patch] Re: bug#58839: 29.0.50; project-kill-buffer fails when Eglot is running Date: Tue, 1 Nov 2022 00:26:43 +0200 Message-ID: <5afc446b-3843-8bfc-f51d-713445a9d30f@yandex.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15803"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Cc: philipk@posteo.net, 58839@debbugs.gnu.org, manuel.uberti@inventati.org, Eli Zaretskii To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= 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:27:29 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 1opdFh-0003zf-PH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Oct 2022 23:27:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opdFI-000572-RH; Mon, 31 Oct 2022 18:27:04 -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 1opdFH-00056e-2z for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2022 18:27:03 -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 1opdFG-0001dE-ST for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2022 18:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opdFG-0004Ke-CG for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2022 18:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Oct 2022 22:27: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.166725521516637 (code B ref 58839); Mon, 31 Oct 2022 22:27:02 +0000 Original-Received: (at 58839) by debbugs.gnu.org; 31 Oct 2022 22:26:55 +0000 Original-Received: from localhost ([127.0.0.1]:42169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opdF8-0004KG-It for submit@debbugs.gnu.org; Mon, 31 Oct 2022 18:26:54 -0400 Original-Received: from mail-wm1-f52.google.com ([209.85.128.52]:41550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opdF5-0004K2-Sr for 58839@debbugs.gnu.org; Mon, 31 Oct 2022 18:26:52 -0400 Original-Received: by mail-wm1-f52.google.com with SMTP id fn7-20020a05600c688700b003b4fb113b86so8926714wmb.0 for <58839@debbugs.gnu.org>; Mon, 31 Oct 2022 15:26:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=1CdgKWJzXveRpuLFg0+GM8NRAgO0dmhgdGzC7o6qaF8=; b=g7LE4PCKoUpVkZt3QK333jUVjSA5G7R+JymqUelosqTAXZXHIfo33lSzYCBCYr5E38 XNEaA9hD80V9a6VSh0UrtcPW7dutmG37iIGBGFzHIEJHTqAkwDlwGMrbf6NBwEqEmmEp DEffvTBY+9YQdiqBmjlMs+NmrPMh9MGWxMtQ/8OLhImEV8UM++1XmlpT+NIGHBNloazs E74FR/GOLTgrT9xZvSOjWZFjsFUIk2F6DMdOWUXmcATHPHxKdiR9s67rEew4lo804DLa q4lMtJ/062UAau1O2uDLVuciASDUhuiCKIK8D7197xkoWsfbRReOtBmVEabwuP3J/GyK 8rgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1CdgKWJzXveRpuLFg0+GM8NRAgO0dmhgdGzC7o6qaF8=; b=fIsjQXQNJullghF1Ou0PMEADpiPlNqicQ9n/nOUiQfOXverdiZbTfDQ5WxuLfkEe8u nWDjzOuE/4hTyZa+kMgM0icH+4wcA7dV9BsV5OEFvuIZu8vVxIKcyBXW7AaHU4+0bbNh 7u+kbIf8AGdIw3R6pJ+7ZNIHEXL6rd0IL82QdspjeLZhVgdByLxbD5llnXMhx5tFrp4O p2OFxMKCZaGDrP+IkYyzZa5Khabq3azbQ71kcrAEusvZBnFGCzN6whu3BNo34j4l44k9 YOibe4unlhFazN1wc0e3z+GDVBsmjO3X4XkRW2GkaqSe38Pz9asCuFDiZYIHJ391cR55 Xq3g== X-Gm-Message-State: ACrzQf0COM1BZM6w5LSQadF1yNWAJFAKgqr1dHv1ikgDBLFve4iun4JE ZKCjyMr2LZJIuFlI+4NeJTw= X-Google-Smtp-Source: AMsMyM7gSNYFE9clmccbkdb8WBNNAGWr8HHj5zTfmML1M/rH4WYqR57z/AwEftQdtpxlN6eX7KFLQw== X-Received: by 2002:a05:600c:2287:b0:3cf:4dfb:c223 with SMTP id 7-20020a05600c228700b003cf4dfbc223mr17753265wmf.19.1667255205872; Mon, 31 Oct 2022 15:26:45 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id q8-20020a5d5748000000b0023677081f3asm8213400wrw.42.2022.10.31.15.26.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Oct 2022 15:26:45 -0700 (PDT) Content-Language: en-US In-Reply-To: <87k04fvig4.fsf@gmail.com> 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:246726 Archived-At: On 31.10.2022 22:36, João Távora wrote: > Dmitry Gutov writes: > >> On 31.10.2022 13:56, João Távora wrote: >>> On Mon, Oct 31, 2022 at 9:52 AM João Távora >> > 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 occasions: >>> > Eglot, CIDER,*scratch*,*ielm*,*sly-scratch*,*Completions*,...  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.  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 about 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.