From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: unable to kill-emacs due to failure to save buffers (in connection with tramp) Date: Sun, 14 Aug 2022 12:14:51 +0200 Message-ID: <878rnrf7xg.fsf@gmx.de> References: <86lerrp4hk.fsf@login.ifi.uio.no> 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="37028"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Martin Steffen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 14 12:17:40 2022 Return-path: Envelope-to: geh-help-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 1oNAgd-0009Mq-82 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 12:17:39 +0200 Original-Received: from localhost ([::1]:35278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNAgc-0004y3-6i for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 06:17:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNAe2-0004wG-NH for help-gnu-emacs@gnu.org; Sun, 14 Aug 2022 06:15:04 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:43829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNAe0-0007aW-QL for help-gnu-emacs@gnu.org; Sun, 14 Aug 2022 06:14:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1660472092; bh=pKgMQtJI78P6ZDzQsZVK1Vh3fVZBmcw93J6g7QWreHY=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=cWc9dO/Dmg1sAM452e5Zq7tzYUpXTGuxt6T7hwFiLteFN4q7OTCG85d80ph3ZRwdo eactuaPoTq1COxs8tdNzoQbRFF7Sv0yVGepJ3MfsH/7QcU+aX1XyZdgr7NoRvA62Ha 9TJcXgWRo3tQo93M2mcfZ8a3GXQ8U8hTMm5l0Zd8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.149.131]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MAwXh-1oCTH31otN-00BHWo; Sun, 14 Aug 2022 12:14:52 +0200 In-Reply-To: <86lerrp4hk.fsf@login.ifi.uio.no> (Martin Steffen's message of "Sun, 14 Aug 2022 11:19:03 +0200") X-Provags-ID: V03:K1:QAq+9fsflw5CI/o/wpAuQjYZGiHuvYXaVWEL6k3oS7Z84Y7AKME cBMYP4IQku54JnwfMWE1UkHNrp4T/tPuzrheLXcpC/hdrCr5VgfDnIUj/6/zdSOsFWBPBLy +ZOzAs/HnsfXfUWSziXWg4hn5cueQ5lLisSBsM6hVaBNd8lbMRhBS/LtFH3bD/n7wNzfBPc X9sSaeJ7Iksqg4BpDH/lg== X-UI-Out-Filterresults: notjunk:1;V03:K0:NOrgrVPj7nw=:gm7NALch5iHbCXy/JKDWI8 Ol7hE+3GicSeS126mJUKm9sKslmYbROO6As6ie/dCqaXchW6tJ4ZK8mLz77Syu+jgdFsPd2s6 kdynLxMMsxvTi5/TpeHgY53GGfG59EpSeSJwkBaMjQNR0bPg1wI+VAovXLfUzbvtYvcUqMWXK TH+fjxlQTJZX+5TezWZPCwu3KxTQKHEXWGpabjD1kS0aHcXyhNc3vQ5sHUN2OpysUfpaT4yqw Wdd5hLlukzNLm7/xZPHgytoVRkWhtlsSu2MQJYJJTYnXckzlfT2jy+5H0fAHtPX88m3Qi3fOV 8gUdeR//k+6LKdqcV/jSRM/o1v2fMINyyqXgtMTn0zO3X/4/ijydO1bamGaNds+VfNYPSOm4w 4PhxZl7ldiVGaQDZXKaCff6BVrNoX7Uv5bOPxtWd5fziOij9L7p1E+VF+/FSeQkPA+Hc1a7VV b/vw0bbYa7LZUkGru3VRWAwsz9+sXL0cyvvAKbFO8rQmqjG38cmA5cyx0DrcMTZoOdV0IVNV2 otzwti7XCIy5eph8hLGo2VgVWZuwjGcVFtteS38tpeLEoLUVZ123htFYl6TRQL81k0HYogTyX m9ln9TGWSrjhWbY8RqgV5XwL1MXiOgOvToi2g+SlEU9vImmzUZ+RaxImA/pjHWjD6cU2tJasf ymK64IKIcHR8+MihJYawBLrxvMDfwaP+9Regu0QTJ35oykQX/J+hcpovN7fIa2sSErAY4GzRk oq0Xk75emAzfQpqi2yLmqN9zgt9dQklaXUGiM4nwn9+/UmrQVjuQ8zx4srzqCneunFYngSdN Received-SPF: pass client-ip=212.227.17.22; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138858 Archived-At: Martin Steffen writes: > Hi, Hi Martin, > . Still, when trying the above-mentioned save-buffers-kill-terminal, > emacs (client) engages in some attempt to save stuff. That seems to be > on initiative of tramp. Messages show activities like > > Opening connection for @192.168.x.x using scp... > Tramp: Sending command =E2=80=98exec ssh -l -e none 192.168.x.x= =E2=80=99 > Tramp: Waiting for prompts from remote shell...failed Tramp: Opening > > That's some address in my home network for some external memory > (NAS). Sometimes I login there using SCP to browse the > filesystem. However, I am not always at home, and the address this not > alway accessible. That's why sometimes the attempt to login there simply > won't work. When I cut-off the wait, typing C-g (keybord quote), it > stops the attempt. However, emacs (client), having failed to do its > save-the-buffers-properly-job propery, does not quit. > > If I instead of save-buffers-kill-terminal do > > kill-terminal > > the same happens, the tramp kicks trying to login the non-existant > address and so again I cannot quit. > > Why does emacs (client) want to login to 192.168.x.x anyway? Note, the > location (resp. files at that location are not buffers in neither the > running emacs nor the emacs-client I like just to get rid of. Hard to say what's up. There have been some changes in tramp-cleanup-* functions, which might improve the behavior. Do you have a chance to upgrade to Tramp 2.5.3.1 from GNU ELPA? If this still happens, pls set tramp-verbose to 6 and tramp-debug-to-file to t. The former variable triggers Tramp to write debug messages, and the latter one (new in Tramp 2.5) initiates to write these debug messages to file in parallel. Good for post-mortem analysis. Please check the Tramp messages on file whether you see something which tells you what's up. If you don't find something, please show the file here. > I assume has to do with the content of some tramp-cashing in the file > ~/.emacs.d/tramp which contains a like like > > ;; -*- emacs-lisp -*- <22/08/14 11:00:37 /home/msteffen/.emacs.d/tramp> > ;; Tramp connection history. Don't change this file. > ;; Run `M-x tramp-cleanup-all-connections' instead. > > (((tramp-file-name "scp" "" nil "192.168.x.x" nil nil nil) (****) > nil)) No, these values are active only if a connection is active. The existence of these values does not mean that a connection is initiated. > best, Martin > > I use Best regards, Michael.