From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QEjKNPtfT2WTnwAAG6o9tA:P1 (envelope-from ) for ; Sat, 11 Nov 2023 12:05:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QEjKNPtfT2WTnwAAG6o9tA (envelope-from ) for ; Sat, 11 Nov 2023 12:05:31 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A57FF23428 for ; Sat, 11 Nov 2023 12:05:31 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=M6hck1t+; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699700731; a=rsa-sha256; cv=none; b=Iro6uVP76VjPnDEeu4+XBdlf2RlTwj8SuA0IuIPo4PEVEhnEvGn4adcxXbXfrCoXjLhav3 5gQV20sr+kIJ9oBGaV8L7hX1LFkK8mnRtIpNuXRiGe/IQJFas+SCSqr9VMvaLfeJ0dPVgk thBdhPJ13Pje9gJR8u0KVwCc8TqTeYVDEhwJMH0zp4+7NdtbakOrskaeE/prEj6OvHFnuX q1dLs5sffqYlCnAq/9zlvMiunAeNokf2JpjgkFePm5IqIlZBMnQvh+5staLm2iBOdd3zll ZKJHtzBfffbPcLjJ5lZdIWsFuM3awNk28U9nVfni+KkmrodpIY2eUyFVaCeDcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=M6hck1t+; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699700731; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=p2nNSCfsFUlVYrCuJUNSDUbtJCGvXTxNcYxsHoYnsTY=; b=l0aP90BZpifTxLN+z9Qy7pCVU2I6XWngBdlCf1HJ+sJxYZrt9LOlfdu88xvkbIaeP+7SwX eZK33MPii1g3d7/m9Pd0TJk22yFfmXk5S05dL1hycSPIo5aEj1cULf+O4fNXktbK3fmFiS TtIgf/SUfeDTAjEnMit2QgANpcxBr+12QybdcOd9z5K+rGguh66huX3xLU4LqU4Di4YTlI 3VQlW374eFELAa+Flkm2kQEjFrDu+hAplhBXPY59n7HoBtQSUROrcHcB707BYlzHlF+NMb glO9Z7nfGsuKOO+pf8xeeK2GKTtBYBZqtRrTF4zCDAerSEKhkRkT60dwJyDmDA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1lnM-0000Sg-A0; Sat, 11 Nov 2023 06:04:56 -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 1r1lnJ-0000Rz-QY for emacs-orgmode@gnu.org; Sat, 11 Nov 2023 06:04:53 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1lnH-0004QH-3a for emacs-orgmode@gnu.org; Sat, 11 Nov 2023 06:04:53 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C91CE240029 for ; Sat, 11 Nov 2023 12:04:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699700688; bh=ZXo4Gdo3Zfm+VrHNrC34hrf8bwDFpbX1OdgjNzBqcdY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=M6hck1t+Hzj34Btps/KWaT0mY12irxSVS71aZhuY+P0jeiCGIWjw5Pm5rscjdh3Ia HoJdCpeZQGjAWTZmNgbnM5oJJv84OOf+yCQ6CWqjJXDPzpE9Hk2kBHoQMUFdX41GPC WA5yJ8lzZLxKTF5Q2P6a63J797pSFLafDWDgtKl1JJnKAmhIasQtWcSdSdA3I6VGe9 NocjMZD9PQxji9r0wY63PSpu/CpIZRu25nDFxWrc+OZ6EEcRBoHIG7kjLXCfICHzrw AEzHjnCsYGdRZ/Ly59h7g7+wcHNqUTvht8HjQXB3lKSM8X/qaDCarPnJzcNEnxzHG5 kR03RHd90kopg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SSCWg5d1rz9rxM; Sat, 11 Nov 2023 12:04:47 +0100 (CET) From: Ihor Radchenko To: Fabio Natali Cc: emacs-orgmode@gnu.org Subject: Re: Issue with org-persist and Tramp In-Reply-To: <87bkc0y61a.fsf@fabionatali.com> References: <87jzqthdge.fsf@fabionatali.com> <87msvofvgx.fsf@localhost> <87a5roi1na.fsf@fabionatali.com> <87h6lw2kg9.fsf@localhost> <875y2chr1f.fsf@fabionatali.com> <8734xf2k9v.fsf@localhost> <87ttpvgjg5.fsf@fabionatali.com> <87r0ky0xi5.fsf@localhost> <87h6lthnds.fsf@fabionatali.com> <87edgxhmry.fsf@fabionatali.com> <87bkc0y61a.fsf@fabionatali.com> Date: Sat, 11 Nov 2023 11:06:58 +0000 Message-ID: <87ttpsv99p.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: A57FF23428 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.06 X-Spam-Score: -9.06 X-TUID: 6JrtjY+q+K2F Fabio Natali writes: > Sorry for the delay. My results below, after testing a couple of > different cases. > > If the remote file had been saved before losing connection, then the > patch below will fix the problem. TRAMP will still hang for a while, as > it tries to reach the server but the buffer will be closed immediately > when using `tramp-cleanup-all-buffers' (or a variant thereof). > ... > (Apologies, the patch is badly formatted and not meant for the > repository.) The gist is that I replaced an occurrence of `associated' > with `file' in your latest patch, Ihor. It seems to work, what do you > think? I made the same change in my v2 patch. Applied. Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=866e638c2 > However, if the remote file hadn't been saved, then TRAMP will still > hang indefinitely. Quitting will reveal the following backtrace: > > Debugger entered--Lisp error: (quit "") > ... > tramp-file-name-handler(unlock-file "/ssh:192.168.1.100:~/test.org") > kill-buffer("test.org") > funcall-interactively(kill-buffer "test.org") > command-execute(kill-buffer) > > This seems to be on the TRAMP side? Yes. You may consider customizing `remote-file-name-inhibit-locks'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at