From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AClbCJRBbGYQnwAAe85BDQ:P1 (envelope-from ) for ; Fri, 14 Jun 2024 13:11:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id AClbCJRBbGYQnwAAe85BDQ (envelope-from ) for ; Fri, 14 Jun 2024 15:11:48 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VCfOOOg+; 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=1718370708; a=rsa-sha256; cv=none; b=c61C3p96TBksgIXOElJQga4+ssaK94qd8W17kuQIFc0AxFriLKMGumOWhmFUTy0XcKGPYN wH1nHy8GLrFKwqhHF2sZRSHHyYLeueUZQy7UtzW7mwWpGutZh5WAvUBdpQTwra6k2hcPwP bDMyT7h1Txngb2HxI2gerd+KdEIvC4+rp8jg2WHdT/egDpDIbLysIta3uFudPzmpTwTHf2 T+myw+2hq6UnDdY7KAQ4Q8L4xgVRycqgVJCTOrW7L9MX6Izv+Lr67gyHjs43N5Rl4MuXc8 vWl6P9eEhuEKBHnXAHyjYp3JEiv9qUnW44wh61iwoCDHAG++oPXSsSkkPHx0Sg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VCfOOOg+; 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=1718370708; 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=OuL3x8uiKVTNLIHpvFU9hCkgytBTKsE2l1SOEhPzMSI=; b=MT/XFpEsn8abSIg8DR1vVpI2nfkey/D3RH7P/LjF/zM20i00MW6Hlt5bnfLEEXFh4ICOCy KYWWN8N+8bFZl9Ko3XtVRh6tifo+eyO0IdnsaaOEaNNIipc2t/Kme5CLYASeSkkIdLG5Pe JimpihKAM9Kom4s2KMQxMfczGqmtUxD0xT56t/ktvznvS1Nz16XwnY7qAaC1jz68oFgiox 3B3DlzdYK/ps+S0bM5SL+UvpQEBAyLcazvG1EykIEkHMp93U7uGeb/XoGbYtAtPY6E4oLp j5HSOP3SQhZQrYvN35oLO15NJwuG6PsvECD+E8hXFIusWJWwz7/oxEXoJTBALg== 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 0B831642E3 for ; Fri, 14 Jun 2024 15:11:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sI6hw-0000Hq-EY; Fri, 14 Jun 2024 09:11:08 -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 1sI6hu-0000Hh-3F for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 09:11:06 -0400 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 1sI6hr-0006WR-8p for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 09:11:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BD836240101 for ; Fri, 14 Jun 2024 15:11:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1718370660; bh=kQusSpn3mFIZJYUQZHR5BJEY5w/YVLjn0Y/dKsjURNA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=VCfOOOg+Q6ZVtA2MvKQr3/gqZL8QFdTLZwCocAjAXjCRbQH01IaSOzWuij5MjgX/U fYZZTZ03L7eM0LxGhlQLw84bm6i97R/QqEl/b76sj9xLAzRbvGYu0ergkfbormMt8a iUmEGZBUnGz8HqyJpOqLmjuUK2Qee193kWH/EzDvshJmnsHnxjlkl/wn9HPAOsPX6b V+nsNSNDKHlIfOV5XABFMPkIUWAQI8pf4Bfl9TI2UfDznUH/8SdZZlpcnNrwP5ixrr otKezPM+oDdZKZ51/IabzMOTprUiNuPP1yLCYEQ5HFkmxcSLy46w6K9DevVqS5Ps+O Ly9Um8qp3265g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W105c1zZcz9rxB; Fri, 14 Jun 2024 15:11:00 +0200 (CEST) From: Ihor Radchenko To: Eli Zaretskii Cc: emacs-orgmode@gnu.org Subject: Re: Please document the caching and its user options In-Reply-To: <86ed921oxu.fsf@gnu.org> References: <86ed921oxu.fsf@gnu.org> Date: Fri, 14 Jun 2024 13:12:42 +0000 Message-ID: <874j9vllbp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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_H3=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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 0B831642E3 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.56 X-Spam-Score: -9.56 X-TUID: cYLI8C9vv3+o Eli Zaretskii writes: > I needed to visit org.org, the Org manual, today, and to my surprise > saw Emacs writing some data files into the ~/.cache/org-persist/ > directory. What's more, Emacs popped a buffer out of the blue telling > me that it could not safely encode the data written to (I presume) > some of those files, and asked me to select a safe coding-system. > > By randomly poking here and there, I've succeeded to figure out that > this is due to org-element's caching of data from parsing Org files. > It seems this caching is turned on by default, but is not documented > in the Org manual, and in particular there's nothing in the manual > about turning off the caching. > > Please document the caching features of Org in the manual, including > how to turn that off. (I also question the wisdom of turning this on > by default without as much as a single request for confirmation from > the user.) Hmm. What aspect of caching do you want us to document? FYI, Org mode has been doing various forms of caching since forever. Recently, we just employed a bit more regular API and introduced one more kind of caching - parser cache. In addition to the previously existing image cache, publishing cache, ID cache, clock cache, etc. > Please also make sure that the code which actually writes the data to > the cache files makes a point of binding coding-system-for-write to a > proper value (probably utf-8-unix), or forces > buffer-file-coding-system of the buffer from which it writes to have > such a safe value, to avoid annoying and unexpected prompting of the > user to select a proper encoding. Lisp programs that write files in > the background cannot fail to set a proper encoding, because the call > to select-safe-coding-system is not supposed to be triggered by Lisp > programs unless they run as a direct result of a user-invoked command. I believe that this particular problem has been solved in https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c8f88589c It is a part of Org 9.7. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at