From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#75209: 30.0.93; Emacs reader failed to read data in "/home/nlj/.cache/org-persist/gc-lock.eld" Date: Sun, 05 Jan 2025 10:03:49 +0000 Message-ID: <87pll1pofu.fsf@localhost> References: <878qrxgg74.fsf@Phoenix> <864j2lnf1j.fsf@gnu.org> <87ldvvhhqo.fsf@localhost> <87frm3elkr.fsf@Phoenix> <878qrvhe0k.fsf@localhost> <86v7uzljc5.fsf@gnu.org> <87ldvug9a3.fsf@localhost> <86ttailoi9.fsf@gnu.org> <87y0ztqg65.fsf@localhost> <86y0zthx11.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="701"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75209@debbugs.gnu.org, njackson@posteo.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 11:02:39 2025 Return-path: Envelope-to: geb-bug-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 1tUNSw-000AZ5-7N for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 11:02:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUNSS-0005ch-7V; Sun, 05 Jan 2025 05:02:08 -0500 Original-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 1tUNSN-0005cC-9I for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 05:02:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUNSN-0004Rv-03 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 05:02:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=BQziO9N9CtAcmEMx44TTM5NceVU/bvG1wP5n/gnqo6s=; b=GBnWTfdGFcLTntn6tMW0GiCFJvdAHpSRQM049flR0d5p0UK6V3i/kb8WmHTb1Xlwx2rVmyrf//RUWclTZw0E1KhqihuKuRqeQbhBNqbdIQKAbMQ1vXHiYab+GmamlzBh2djM1hhLFjlUvdATbE/pdKvzyGALF84vRneS08WnWCKSAwVL/7P/ndGrST+Pyqs7ufqOX+iG8w/zVb/ptqTBFx6l4k6aU+qUpZEsBdzpN0r0jrAXsQaeA/js245F4ru051RBeGwZxIjNoKCX2ppF5Pl9w+6hdewYGk8waHPeaJ4y22NcpblWRLaApsLCaIS2cBnMTnORa+1eH80n/PIaLA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUNSL-0000S1-La for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 05:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 10:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75209 X-GNU-PR-Package: emacs Original-Received: via spool by 75209-submit@debbugs.gnu.org id=B75209.17360713011694 (code B ref 75209); Sun, 05 Jan 2025 10:02:01 +0000 Original-Received: (at 75209) by debbugs.gnu.org; 5 Jan 2025 10:01:41 +0000 Original-Received: from localhost ([127.0.0.1]:59932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUNS1-0000RG-4F for submit@debbugs.gnu.org; Sun, 05 Jan 2025 05:01:41 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:44339) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUNRw-0000Qs-Rl for 75209@debbugs.gnu.org; Sun, 05 Jan 2025 05:01:39 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2F2E9240101 for <75209@debbugs.gnu.org>; Sun, 5 Jan 2025 11:01:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1736071290; bh=9oSLH4g88E1NMvEFBRpeGNIumCB9U9Afqb95IvtPItY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=edHCoDoOZ59VIQ7ii0d2HC34caixqpxuSUn6/BaoqcvMhavw7kFMbgAkNrxDTssMy c7yJTEVSQ3kWEmiwZVzYhOUBnD9D2cSHA75s/fybIHTeMmWHAkbYKgYSLOrNOOJkwi lZRum9pqaxO/yif8AvfNozPa269lErcDZqPDCD9XblbvhEjDkKO4wioQUcOYCaev35 01uCmke3z8XTD8Lfn28MZ6gRHfx9+7Swrtiqkxd5rgFKaAf7uSTv6XW3ls2khbCTO1 P+MuuKfbgtgPPxEu2w7qgGGNpbU1xgyRMs7bRr10hPW2D7EB29VVCGr4FsBJkxMFfZ hQCL808I/wb3w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YQtBK1vlPz6tyT; Sun, 5 Jan 2025 11:01:29 +0100 (CET) In-Reply-To: <86y0zthx11.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298526 Archived-At: Eli Zaretskii writes: > Thanks. I think I still don't have a clear idea of the usage of these > caches. Are the caches supposed to be common to all Emacs sessions? Yes. > E.g., when a cache changes by one session, are other sessions supposed > to know about the change? Usually yes, except for cache entries that are supposed to live until the end of Emacs session. > And if the cache is common to all sessions, then perhaps reading the > index before writing it should avoid several sessions step on each > other's toes? You are right. The only problem is short-living caches that should be cleared at the end of Emacs session that created it. > One way of rewriting a file atomically is to write the stuff to a > temporary file, then rename it to the target name. If Org doesn't > already do that, maybe you should try doing that (together with > reading the file before updating it)? Org uses `with-temp-file'. Is there an alternative built-in and more robust way to write string to file? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at