From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +IWSNd/MS2XbOAEAauVa8A:P1 (envelope-from ) for ; Wed, 08 Nov 2023 19:01:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +IWSNd/MS2XbOAEAauVa8A (envelope-from ) for ; Wed, 08 Nov 2023 19:01:03 +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 8ECD957D7B for ; Wed, 8 Nov 2023 19:01:03 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cevT7Swz; 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=1699466463; a=rsa-sha256; cv=none; b=f2I7NDP4/5DiVKJU0CWLJNGc54b4/lZbg4ijpnKJzHOZvl1B0opuWWB33dZLczSw4/ZkMP R/vM4S+GWcbnkv6pYHDWHkJkGylEpoisCKYBuigZF9qmb2wMz0qzX3S3uJX3MYMb6edOT2 njNEfU1zwiFjALOp4PVfjsbVIOTwZYkWeqTnWQr6G/p3eDQDrQ+i1fcTdAAs/b/MvT1j0y 6+geWFlH+aGtCnAXCRY6d5GnyFFKkVYj1vfO5/uADFNd0MbUUUNMDVblOET+r+ws/Vsgim j4Jfb5KuD6utB2q6Wm5DKeqqR4GaIwpR/UbIQgFyNd4cxLQY1Z7Jz736G+SPRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699466463; 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=21lGUPgm6NNzcQMYhEt4Dd7IAbgWvethtQ9pa5GpmYI=; b=Fu+tZASiNowlTYWWlDrpzXhkASC/zSYi8M1PoX0CzNhxV1S43ZaFu7M1WFz4083WVKuGjb L6YIDeOIh18dvmKT26iS62NS0Ix1EDOsVMe7IWBi0BLE4jgedNoGFTgcfBWLMNkkI6VNGu 0zx5CzXTpyEbhp0JMxBoF/zWtimKRx/yyhI/SnKUGRtoIfpl/HM179baG3nRzA66SzTRjk 6o5a0NLziNyC4Iha2dykvr4urM7vjVxtAjbtijwW6AHKoZ33R/+VpltaMn/faBWDdwpQnv a+nFuLfiXE7jSwYUzCMqA4xzoeyirpdOKHSe6dcIKmnC7uaJ4f+UQgbGU+R1Xg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cevT7Swz; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0mq6-0003U9-BI; Wed, 08 Nov 2023 12:59:42 -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 1r0mpr-0003Ei-RF for emacs-orgmode@gnu.org; Wed, 08 Nov 2023 12:59:31 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0mpn-00055Q-Tj for emacs-orgmode@gnu.org; Wed, 08 Nov 2023 12:59:27 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 02B68240105 for ; Wed, 8 Nov 2023 18:59:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699466361; bh=azZ8ADPBSe1yNL7KQ0F4EfxGjEqESLP3T6cT4fjthOQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=cevT7Swz3Js0I4J6Yd/IUEKLJsOpcT8agqtm+5Hj+lgtuQ5w+nJ5vRf4LlfVCWF0m Z+5mRHOjHny5y5d5BsjhZrOi3tcoTwqBsJftRVq2MeH/NuVRDk+0U/3lJd8W5ogJ5Q XWXqsnM59EAkzhLEIiyoXAD8qyTzAYNdUd/dFv2MepJHcOD0otLrKl02EJfUnH6aJ+ AaESIN3BLr/KQ5iwxPkMzxSKqBt0a+NgL8OwMaHiPDbK1Nr+plJ9kqH6KabSnjNfCG rXkUAosIwfeLCWVFRR/qk3a9XE8xZEo7LUE66IxV2UbDhiUBVFkA7l1dWvIJuZHW1z j28iB3SVVUBaw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SQXsM6zd5z9rxG; Wed, 8 Nov 2023 18:59:19 +0100 (CET) From: Ihor Radchenko To: Fabio Natali Cc: emacs-orgmode@gnu.org Subject: Re: Issue with org-persist and Tramp In-Reply-To: <87a5roi1na.fsf@fabionatali.com> References: <87jzqthdge.fsf@fabionatali.com> <87msvofvgx.fsf@localhost> <87a5roi1na.fsf@fabionatali.com> Date: Wed, 08 Nov 2023 18:01:26 +0000 Message-ID: <87h6lw2kg9.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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-Scanner: mx11.migadu.com X-Spam-Score: -9.31 X-Migadu-Queue-Id: 8ECD957D7B X-Migadu-Spam-Score: -9.31 X-TUID: ObYpS5YTvacb --=-=-= Content-Type: text/plain Fabio Natali writes: > Thanks for your email. Sure, glad to share the backtrace with you. > ... > tramp-file-name-handler(file-attributes "/ssh::/home/user/test.org") > org-persist--normalize-associated(#) I see the problem now. Does the attached patch solve the "freeze"? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-persist-normalize-associated-Avoid-TRAMP-connect.patch >From ac571f9654ef5de8cef7157e216beeb0b91f6125 Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko Date: Wed, 8 Nov 2023 19:58:42 +0200 Subject: [PATCH] org-persist--normalize-associated: Avoid TRAMP connection for remote files * lisp/org-persist.el (org-persist--normalize-associated): Never try to store inode association for remote TRAMP files. Reported-by: Fabio Natali Link: https://orgmode.org/list/87jzqthdge.fsf@fabionatali.com --- lisp/org-persist.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/org-persist.el b/lisp/org-persist.el index 01078f459..f97e1d7a4 100644 --- a/lisp/org-persist.el +++ b/lisp/org-persist.el @@ -481,9 +481,14 @@ (defun org-persist--normalize-associated (associated) (unless (stringp associated) (setq associated (cadr associated))) (let* ((rtn `(:file ,associated)) - (inode (and (fboundp 'file-attribute-inode-number) - (file-attribute-inode-number - (file-attributes associated))))) + (inode (and + ;; Do not store :inode for remote files - it may + ;; be time-consuming on slow connections or even + ;; fail completely when ssh connection is closed. + (not (file-remote-p associated)) + (fboundp 'file-attribute-inode-number) + (file-attribute-inode-number + (file-attributes associated))))) (when inode (plist-put rtn :inode inode)) rtn)) ((or (pred bufferp) `(:buffer ,_)) -- 2.42.0 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--