From unknown Thu Aug 14 21:56:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61663: 30.0.50; TRAMP: (kill-buffer) sometimes cannot kill modified buffer without re-establishing a connection Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2023 21:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61663 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 61663@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167692845925222 (code B ref -1); Mon, 20 Feb 2023 21:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Feb 2023 21:27:39 +0000 Received: from localhost ([127.0.0.1]:53850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUDhC-0006Yk-RQ for submit@debbugs.gnu.org; Mon, 20 Feb 2023 16:27:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:46616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUDhA-0006Yc-KA for submit@debbugs.gnu.org; Mon, 20 Feb 2023 16:27:37 -0500 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 1pUDhA-0002vv-BJ for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 16:27:36 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUDh5-0004Uh-Fz for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 16:27:33 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 06FAF5C006B for ; Mon, 20 Feb 2023 16:27:28 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 20 Feb 2023 16:27:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t= 1676928448; x=1677014848; bh=JCBVec449XFgJk0Swvxgae4k4X7Avc0jFuG v8FVpSiw=; b=c3poEga5YBfdii+cSmDo8o1kG+GScPtWzKkoF8fnBQXYVkw2U1S j0jHZZqEnbs3GTrE4ecINUq8rxd+q7A709X1IhtzyERLBWx6DUUOnnbU3NqYdoa2 4krfWC/Tcj6hJMzPQTErcnewmWmT8b7scuXzxBo0VOQXLRePFEvsFsc8cxUimtNE qKBzT4K3hf/EVXBRkQLiCuR+v3dr8ekooZJNVkHIuZqAN7f3Y9dvRRlPnzonICos Qgyl9U4X7/zbEy97Uz7LASXRH9c7r9VNx9vV6ScJo9IdaT60PM33Rs/bJf5oksql HAmN1gGy1Tmy4gi4SQaYXPwfFo3m1g2j2zg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1676928448; x= 1677014848; bh=JCBVec449XFgJk0Swvxgae4k4X7Avc0jFuGv8FVpSiw=; b=R qiSkdSi1brCt6rz3XOvoPF4qAsNKB/FYVrg9worRa1WwYKzDNPrD6LWb33YWeHhw AHpxdzMECPCJEhRqGwKKrBqeH3eHjmWaP9cbYKnHREwSzADE1/dFTPQJSnj34iyn Hgdy9U4C2oenfk0I0rOQPnRGkksCVayDHIgesgAyxY6pnWC8CXs4wSEnfMMQv89p eQj4Fr4kpEcktOXbVWMK2fOx/Ea6E2CEo9D54b06zksQHLDn9fnhfGTj1GJe4K9K sImRD8XXdxlQj2gtVzCYNs5tkqB2MDZ6wGwqudmMRuURSBy0gA/gqIBo4P2sUXFQ W2bIqWdvhxDx7fiy75KYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejhedgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttd dttdenucfhrhhomhepffhimhgrucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghu tggvrdhnvghtqeenucggtffrrghtthgvrhhnpeffvdffudfhkeffhfeifefhffdvtdfgfe ejveeuvdefudejjeduveeftdeggeeuvdenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 20 Feb 2023 16:27:27 -0500 (EST) From: Dima Kogan Date: Mon, 20 Feb 2023 13:27:23 -0800 Message-ID: <873570do3o.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.27; envelope-from=dima@secretsauce.net; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hi. This happens with a bleeding-edge emacs. I'm using a yubikey-based ssh key, so I need to enter a passphrase and touch the yubikey to unlock the ssh key. It looks like TRAMP is requiring this interaction even when it shouldn't. 1. emacs -Q 2. C-x C-f /ssh:server:file We open some remote file using TRAMP. This is a new ssh connection, so I must enter the passphrase and touch the yubikey. 3. Modify the buffer by typing something into it. Do not save 4. Break the ssh link. One way is to M-x tramp-cleanup-this-connection 5. Try to kill the buffer with C-x k. Emacs says something like "Buffer modified. Kill anyway?" I say "yes". I would expect emacs to throw away the modified buffer. Instead it tries to re-establish the network connection to (presumably) do some cleanup. This requires the yubikey auth again. If I don't follow through the passphrase, touching prompts by pressing C-g, the modified buffer sticks around, and there doesn't appear to be any way to kill it. With a "normal" ssh key, without a yubikey TRAMP still tries to re-establish the network connection here. But it quickly fails, and the (kill-buffer) still succeeds. With a yubikey it fails when I kill it and the (kill-buffer) fails too. TRAMP shouldn't be trying to re-establish the connection here probably. Thanks! From unknown Thu Aug 14 21:56:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61663: 30.0.50; TRAMP: (kill-buffer) sometimes cannot kill modified buffer without re-establishing a connection Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Feb 2023 14:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61663 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dima Kogan Cc: 61663@debbugs.gnu.org Received: via spool by 61663-submit@debbugs.gnu.org id=B61663.16774227475886 (code B ref 61663); Sun, 26 Feb 2023 14:46:01 +0000 Received: (at 61663) by debbugs.gnu.org; 26 Feb 2023 14:45:47 +0000 Received: from localhost ([127.0.0.1]:42879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWIHa-0001Wr-Vw for submit@debbugs.gnu.org; Sun, 26 Feb 2023 09:45:47 -0500 Received: from mout.gmx.net ([212.227.17.22]:38271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWIHY-0001Wb-VH for 61663@debbugs.gnu.org; Sun, 26 Feb 2023 09:45:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677422736; i=michael.albinus@gmx.de; bh=wn363y9EKQ1VBuf1oJq8HunST5uIDQOkuhZIKRpIhmQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=N1bglChR2C6epXl2Y/l5aiOQ4QANaHxZr3WEEXJkYD3VSEhl87cORenp199vQKWS/ Kd29rBQINVf2DzJHKGjrKHY97as0o/ddgOLpaVefKH0fClJhy7eaaODJ0mhjYA4DAz ArHLbqn2QO28d/ta7FLQx+3slncorRsHwRFBXRMzPXe5OaQErFP0P3pwoofLoBooeR vN3BVcQGV8JebtUdwRIr14YSc84QyDZWxMtrHd3H1Dr7Cht67MpF1tWoBQLEh7dCEQ zg3rwoPrG65jpclyjBY8p3TIBEedOtJsv8Grm/V6e+QUDKBYJ0+AKoaQxjFu+mhv10 5jpK8Y82xy/Cg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MrhQC-1ol5Qy0IUe-00niLm; Sun, 26 Feb 2023 15:45:36 +0100 From: Michael Albinus In-Reply-To: <873570do3o.fsf@secretsauce.net> (Dima Kogan's message of "Mon, 20 Feb 2023 13:27:23 -0800") References: <873570do3o.fsf@secretsauce.net> Date: Sun, 26 Feb 2023 15:45:35 +0100 Message-ID: <87356spjsg.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: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WnMLkFevMb17MY2tZhWtVOpbXhcS23bI+aNLzWB1v Di2b4Ay41kxNC+EFhtHsmk5qrSZvFyvr5QJiyyvXVwncfdsAGOFztUnP5eAD6dNJekMza12bx qbWhxfVNwcHe7nry4A2Q+Nlf0wrY5ZxMhzOmpV8P9oRJwLFHxLG9hw/z7fZpB6tNdVPQLSttf XbOrXfoIkAMEKgLPmRwP16wgmTk= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Dima Kogan writes: > Hi. Hi Dima, > This happens with a bleeding-edge emacs. I'm using a yubikey-based > ssh key, so I need to enter a passphrase and touch the yubikey to unlock > the ssh key. It looks like TRAMP is requiring this interaction even when > it shouldn't. > > 1. emacs -Q > > 2. C-x C-f /ssh:server:file > > We open some remote file using TRAMP. This is a new ssh connection, > so I must enter the passphrase and touch the yubikey. > > 3. Modify the buffer by typing something into it. Do not save > > 4. Break the ssh link. One way is to M-x tramp-cleanup-this-connection > > 5. Try to kill the buffer with C-x k. Emacs says something like "Buffer > modified. Kill anyway?" I say "yes". I would expect emacs to throw > away the modified buffer. Instead it tries to re-establish the > network connection to (presumably) do some cleanup. This requires the > yubikey auth again. If I don't follow through the passphrase, > touching prompts by pressing C-g, the modified buffer sticks around, > and there doesn't appear to be any way to kill it. > > With a "normal" ssh key, without a yubikey TRAMP still tries to > re-establish the network connection here. But it quickly fails, and the > (kill-buffer) still succeeds. With a yubikey it fails when I kill it and > the (kill-buffer) fails too. TRAMP shouldn't be trying to re-establish > the connection here probably. When the buffer is modified, kill-buffer tries to unlock the respective file. I've modified tramp-handle-unlock-file such a way that it ceases to work when the connection is broken. Pushed to master. Could you, pls, check? > Thanks! Best regards, Michael. From unknown Thu Aug 14 21:56:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dima Kogan Subject: bug#61663: closed (Re: bug#61663: 30.0.50; TRAMP: (kill-buffer) sometimes cannot kill modified buffer without re-establishing a connection) Message-ID: References: <87mt48rjv6.fsf@gmx.de> <873570do3o.fsf@secretsauce.net> X-Gnu-PR-Message: they-closed 61663 X-Gnu-PR-Package: emacs Reply-To: 61663@debbugs.gnu.org Date: Sun, 19 Mar 2023 12:45:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1679229901-7737-1" This is a multi-part message in MIME format... ------------=_1679229901-7737-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #61663: 30.0.50; TRAMP: (kill-buffer) sometimes cannot kill modified buffer= without re-establishing a connection which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 61663@debbugs.gnu.org. --=20 61663: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61663 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1679229901-7737-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 61663-done) by debbugs.gnu.org; 19 Mar 2023 12:44:41 +0000 Received: from localhost ([127.0.0.1]:49626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdsOv-00020A-Ch for submit@debbugs.gnu.org; Sun, 19 Mar 2023 08:44:41 -0400 Received: from mout.gmx.net ([212.227.17.21]:33543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdsOt-0001zx-Kw for 61663-done@debbugs.gnu.org; Sun, 19 Mar 2023 08:44:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1679229871; i=michael.albinus@gmx.de; bh=0Q+3Q4ozaKDtC+Vz6BKpkCeQhALPtxn4TaGqiWgwrao=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=YZzvMH+TpZTosNieotzh2P8vCGOXXpPr2gvg8qi3WAkLkQs+deetxjIF4NJ0I4u10 STr2gizxLebK29oaMdNcDOuYhFW4i2ZhT0Ro/gluimEtpHoT2V27umMt65nv0vNYyO pU7sZpU/HL+EjLUYED8zfq3ZqRYC4zBuGbUQxvZTEtEgezmzlu/fFjliQUqO4aEzJ8 LMoNCZOxohHPlIg7NpZzYftNH4FO3jB8Fl55MHrTeLTHt78GtB4g0yZ2wXSa1m1Aps ic7HR0GvAfBLB05OIu8bHU0c587Nj2em73kOwADP11kt1QDxQ7xnqGsLYBAiTywZoE VZhXUbJtaIeuw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.19]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MpUYu-1qIm7G3V1Q-00pxkB; Sun, 19 Mar 2023 13:44:30 +0100 From: Michael Albinus To: Dima Kogan Subject: Re: bug#61663: 30.0.50; TRAMP: (kill-buffer) sometimes cannot kill modified buffer without re-establishing a connection In-Reply-To: <87356spjsg.fsf@gmx.de> (Michael Albinus's message of "Sun, 26 Feb 2023 15:45:35 +0100") References: <873570do3o.fsf@secretsauce.net> <87356spjsg.fsf@gmx.de> Date: Sun, 19 Mar 2023 13:44:29 +0100 Message-ID: <87mt48rjv6.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:LVLjuW7CcnNeiadlBufjS3AxrfAnxqNRqra9iX6RVxwK7exUR5F UlJRxypo7Q41M233do0Tw/hBiniMEfcI7mtNgXy4m5/xwao7+KNskMRkKTVNoDuy7+2EIBt L4B4fwOvVMrz1XVgIq1QlOJD3PTrC8RhzhOcksg07SXfrGAP4HQj1RIpJQkhUFI9xDWEsxH MUjK1/9CF2orgfOmVsD2g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Debbugs-Envelope-To: 61663-done Cc: 61663-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 30.1 Michael Albinus writes: Hi Dima, > When the buffer is modified, kill-buffer tries to unlock the respective > file. I've modified tramp-handle-unlock-file such a way that it ceases > to work when the connection is broken. > > Pushed to master. Could you, pls, check? No further response, so I assume the bug is fixed. Closing. Best regards, Michael. ------------=_1679229901-7737-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Feb 2023 21:27:39 +0000 Received: from localhost ([127.0.0.1]:53850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUDhC-0006Yk-RQ for submit@debbugs.gnu.org; Mon, 20 Feb 2023 16:27:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:46616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUDhA-0006Yc-KA for submit@debbugs.gnu.org; Mon, 20 Feb 2023 16:27:37 -0500 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 1pUDhA-0002vv-BJ for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 16:27:36 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUDh5-0004Uh-Fz for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 16:27:33 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 06FAF5C006B for ; Mon, 20 Feb 2023 16:27:28 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 20 Feb 2023 16:27:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t= 1676928448; x=1677014848; bh=JCBVec449XFgJk0Swvxgae4k4X7Avc0jFuG v8FVpSiw=; b=c3poEga5YBfdii+cSmDo8o1kG+GScPtWzKkoF8fnBQXYVkw2U1S j0jHZZqEnbs3GTrE4ecINUq8rxd+q7A709X1IhtzyERLBWx6DUUOnnbU3NqYdoa2 4krfWC/Tcj6hJMzPQTErcnewmWmT8b7scuXzxBo0VOQXLRePFEvsFsc8cxUimtNE qKBzT4K3hf/EVXBRkQLiCuR+v3dr8ekooZJNVkHIuZqAN7f3Y9dvRRlPnzonICos Qgyl9U4X7/zbEy97Uz7LASXRH9c7r9VNx9vV6ScJo9IdaT60PM33Rs/bJf5oksql HAmN1gGy1Tmy4gi4SQaYXPwfFo3m1g2j2zg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1676928448; x= 1677014848; bh=JCBVec449XFgJk0Swvxgae4k4X7Avc0jFuGv8FVpSiw=; b=R qiSkdSi1brCt6rz3XOvoPF4qAsNKB/FYVrg9worRa1WwYKzDNPrD6LWb33YWeHhw AHpxdzMECPCJEhRqGwKKrBqeH3eHjmWaP9cbYKnHREwSzADE1/dFTPQJSnj34iyn Hgdy9U4C2oenfk0I0rOQPnRGkksCVayDHIgesgAyxY6pnWC8CXs4wSEnfMMQv89p eQj4Fr4kpEcktOXbVWMK2fOx/Ea6E2CEo9D54b06zksQHLDn9fnhfGTj1GJe4K9K sImRD8XXdxlQj2gtVzCYNs5tkqB2MDZ6wGwqudmMRuURSBy0gA/gqIBo4P2sUXFQ W2bIqWdvhxDx7fiy75KYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejhedgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttd dttdenucfhrhhomhepffhimhgrucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghu tggvrdhnvghtqeenucggtffrrghtthgvrhhnpeffvdffudfhkeffhfeifefhffdvtdfgfe ejveeuvdefudejjeduveeftdeggeeuvdenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 20 Feb 2023 16:27:27 -0500 (EST) From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 30.0.50; TRAMP: (kill-buffer) sometimes cannot kill modified buffer without re-establishing a connection Date: Mon, 20 Feb 2023 13:27:23 -0800 Message-ID: <873570do3o.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.27; envelope-from=dima@secretsauce.net; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hi. This happens with a bleeding-edge emacs. I'm using a yubikey-based ssh key, so I need to enter a passphrase and touch the yubikey to unlock the ssh key. It looks like TRAMP is requiring this interaction even when it shouldn't. 1. emacs -Q 2. C-x C-f /ssh:server:file We open some remote file using TRAMP. This is a new ssh connection, so I must enter the passphrase and touch the yubikey. 3. Modify the buffer by typing something into it. Do not save 4. Break the ssh link. One way is to M-x tramp-cleanup-this-connection 5. Try to kill the buffer with C-x k. Emacs says something like "Buffer modified. Kill anyway?" I say "yes". I would expect emacs to throw away the modified buffer. Instead it tries to re-establish the network connection to (presumably) do some cleanup. This requires the yubikey auth again. If I don't follow through the passphrase, touching prompts by pressing C-g, the modified buffer sticks around, and there doesn't appear to be any way to kill it. With a "normal" ssh key, without a yubikey TRAMP still tries to re-establish the network connection here. But it quickly fails, and the (kill-buffer) still succeeds. With a yubikey it fails when I kill it and the (kill-buffer) fails too. TRAMP shouldn't be trying to re-establish the connection here probably. Thanks! ------------=_1679229901-7737-1-- From unknown Thu Aug 14 21:56:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61663: 30.0.50; TRAMP: (kill-buffer) sometimes cannot kill modified buffer without re-establishing a connection Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Mar 2023 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61663 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 61663@debbugs.gnu.org Received: via spool by 61663-submit@debbugs.gnu.org id=B61663.16792578873801 (code B ref 61663); Sun, 19 Mar 2023 20:32:01 +0000 Received: (at 61663) by debbugs.gnu.org; 19 Mar 2023 20:31:27 +0000 Received: from localhost ([127.0.0.1]:52846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdzgd-0000zE-6T for submit@debbugs.gnu.org; Sun, 19 Mar 2023 16:31:27 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdzga-0000z0-LT for 61663@debbugs.gnu.org; Sun, 19 Mar 2023 16:31:25 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 38EC15C0076; Sun, 19 Mar 2023 16:31:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 19 Mar 2023 16:31:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1679257879; x= 1679344279; bh=q8D5x7sRGRi6PZ8zESQ+cJ9dnpim7BcJ+cPxWF7HYwA=; b=m 8rkT7DyshJdeROJlPqvVJ2U6fOYLbA/VY3nLATNbTjqjMi537W0cm6YBouzVW3vz 5KJUCQkURelRbZAkkOtKvVANMYCuup3uooxDpnbLuXonCQYPT1dVluMnytdOOwQV q4ongU07ZP0hF7J6+ERNrxL5O276q0MFdEHeuS7IYw1fcUdpdY/NPjLIQPr0ar96 lpZ1TQQAwI+4VVTrZ46oB3K4mqSJDO2SjG5YCjpuI3PkXbqDy8V0/KqZlN716aX7 obAlv/NhICR7y/DnBpoSmDUcMRnGFYNMSqq5YxUtJspNz8ROhoZ7YFz0H28E1LQ8 p7rTdMZwEk4nwfh2Do7GQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679257879; x=1679344279; bh=q8D5x7sRGRi6P Z8zESQ+cJ9dnpim7BcJ+cPxWF7HYwA=; b=ayloHYxZda4FVbMAgJ9Gnxm/Oljx/ 0WhyBw3BZD20J7MZQUi4FrGfX7UDMOcgE9urH+AoF2KLf56j/sxmgqoTPrHRN5Mz 5YgXXmj7YIO/lYdta4wIo3vG50JOR8y7LXefNQlk0tmujWZ4FSYB49UdwM27jdVL qBS1eQkdAgXBLtyVVIVPIMxxLEQv4dgTpI3igC7zc7JjVJic0pnczY3Svud+ax6P x+kX5yYAqhjryYcle6K/gx9KRs0SfkohLiY8zyfh8+OF7y9z/M8yN+YyLvIcFewc X7+s11zjFXXw4NWPkEKLM4RYxvEnGDHdCYaLML9fWrfY+BB+e/3xrNPKw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdefiedgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvfevufffjgfkgggtsehttdertddtredtnecuhfhrohhmpeffihhm rgcumfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrf grthhtvghrnhepgfeifeehgedvkeekvdevvdelvdegleevtedvueejvdejveduveeuleev leevudetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epughimhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 Mar 2023 16:31:18 -0400 (EDT) References: <873570do3o.fsf@secretsauce.net> <87356spjsg.fsf@gmx.de> <87mt48rjv6.fsf@gmx.de> User-agent: mu4e 1.8.10; emacs 30.0.50 From: Dima Kogan Date: Sun, 19 Mar 2023 13:30:35 -0700 In-reply-to: <87mt48rjv6.fsf@gmx.de> Message-ID: <87edpklbzh.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Michael. I forgot to test this; apologies. I did just try out your fix, and it does work for me. Thanks!