From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id yGhoAga9TWaMNAEAqHPOHw:P1 (envelope-from ) for ; Wed, 22 May 2024 11:38:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yGhoAga9TWaMNAEAqHPOHw (envelope-from ) for ; Wed, 22 May 2024 11:38:14 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iDyVoBkE; 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=1716370693; 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=GwU4A1AF8F9VlRuFRZRhLvY4+BgGNdo1nGbqurL4kM0=; b=bVkuXd51lhHP7KHMWe6dNEP7I5uEDOCvbCBASw+GaDk7+FUw1Uv2QqPk/v86OD9uwfeM5Z vqN8jhR2yIb8bM5hXHzh4YY3KBGZPTpSnBQjFI4T0QRP1orwP2XBbrZpSpsHLFUIi6eeQ0 3RGIpH9YhgySD2uIiHxeREOQKRRM3/lf+4X4XpCKD0AgqaNlfaUk9dqHfJqIWAXus7dZn3 qwRLyNODk++7CQwdlBuxUQmdnPf9RYaIkquVfsuvUQoYhSMTkLmnN+hyuw7hUmxwkihXcv V0qF0tQuHHHqW8nzpMATsqWXwOkPUy7E74tSzO3cBKD+npsAJy79lkCmwaWpzw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716370693; a=rsa-sha256; cv=none; b=utN7yyBYNLnMJJEGgbqYNdIpGo+csnIk9fzPl0V8m55/kbjJMVhavzB4Fml2LZzfjIPS7w 9JCnIiC1k3hC9asFiVbNgKtgZ78eBZF79PRphMiT0SGhn4FyqhgTjyoBDyRdptm4BQRKnY VSCtLD8gfzBbprzXVCN3nxhEyS0whqCjZeCVVuJZuBr+Deldy/A1LzGHbgoCqKxv6+gD0Z bLshBxWGEXzUo1QNhLbL6M41GO9WKpqhZyr/tZDwN3WrKSiWHKV3co7RWoRjHrrpstQQuz W76IpeET9WWKEbazerjahHJMj2zVDAYaW6r/YloLL1lwfhiEViBsK55NTku1Ng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iDyVoBkE; 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 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 C3743BB70 for ; Wed, 22 May 2024 11:38:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9iPL-00066N-9E; Wed, 22 May 2024 05:37:15 -0400 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 1s9iPH-00065Y-TD for emacs-orgmode@gnu.org; Wed, 22 May 2024 05:37:11 -0400 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 1s9iPF-0007CR-P3 for emacs-orgmode@gnu.org; Wed, 22 May 2024 05:37:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9845C240027 for ; Wed, 22 May 2024 11:37:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716370627; bh=jnRp0xfWQfpBKFwceUXHhYw+aYrf2huZuebdJdObk6s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=iDyVoBkE3w5j2Sg3xvJLVq8HIWa0uQWZAnWkZwy4UHTq33JAEVgthafbj57dM1RBE MQE2s6O9dxp9YlQ/J7iQk8CsX/qPAeTy352Fku7Nih3szodRQCeSm4Wa2HlDkF9Tls H12MydEPQotPuIvR+nGiWJy/ga5jXG11NzhBGsDckdJuXn3Vj1FWP5poVyGwg2MbvA 2JTagJZD7e1emrV0pVjH7HQjdpdHxzM2cm+e6k7seIuSTKTuOODKhpD3qxlMbFbUXO xNhHOj6WlQBuo7dfzIB0oO7DxRjjkrZhoQkuJ9vPNcF3u+5vSbr4epOamySp+bg1s1 ekU1FVEz87Ekg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VkmRQ5kGfz9rxP; Wed, 22 May 2024 11:37:06 +0200 (CEST) From: Ihor Radchenko To: Greg Minshall Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)] In-Reply-To: <699479.1716350971@archlinux> References: <574109.1715751441@archlinux> <871q60ad4h.fsf@localhost> <644082.1716088344@archlinux> <87o7923u67.fsf@localhost> <699479.1716350971@archlinux> Date: Wed, 22 May 2024 09:38:50 +0000 Message-ID: <87a5kii3th.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Spam-Score: -6.57 X-Spam-Score: -6.57 X-Migadu-Queue-Id: C3743BB70 X-Migadu-Scanner: mx11.migadu.com X-TUID: 1dbK/VG7mEmf --=-=-= Content-Type: text/plain Greg Minshall writes: >> Then, I need a backtrace. May you please enable debug-on-error and share it? > > here is a backtrace. is this enough, or should i do something extra to > give you more information from it? Yeah. May you try the attached alternative patch? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=v2-0001-lisp-org-persist.el-Ignore-lock-files-when-writin.patch >From 793f7df996b3aade65a66d936e4bd761af154b26 Mon Sep 17 00:00:00 2001 Message-ID: <793f7df996b3aade65a66d936e4bd761af154b26.1716370593.git.yantar92@posteo.net> From: Ihor Radchenko Date: Fri, 17 May 2024 14:28:48 +0300 Subject: [PATCH v2] lisp/org-persist.el: Ignore lock files when writing cache * lisp/org-persist.el (org-persist--write-elisp-file): Ignore locks. Reported-by: Greg Minshall Link: https://orgmode.org/list/574109.1715751441@archlinux --- lisp/org-persist.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lisp/org-persist.el b/lisp/org-persist.el index 0df345536..8a7461649 100644 --- a/lisp/org-persist.el +++ b/lisp/org-persist.el @@ -476,12 +476,15 @@ (defun org-persist--write-elisp-file (file data &optional no-circular pp) (start-time (float-time))) (unless (file-exists-p (file-name-directory file)) (make-directory (file-name-directory file) t)) - (with-temp-file file - (insert ";; -*- mode: lisp-data; -*-\n") - (if pp - (let ((pp-use-max-width nil)) ; Emacs bug#58687 - (pp data (current-buffer))) - (prin1 data (current-buffer)))) + ;; Force writing even when the file happens to be opened by + ;; another Emacs process. + (cl-letf (((symbol-function #'ask-user-about-lock) #'always)) + (with-temp-file file + (insert ";; -*- mode: lisp-data; -*-\n") + (if pp + (let ((pp-use-max-width nil)) ; Emacs bug#58687 + (pp data (current-buffer))) + (prin1 data (current-buffer))))) (org-persist--display-time (- (float-time) start-time) "Writing to %S" file))) -- 2.45.1 --=-=-= 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 --=-=-=--