From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iJz8KUVDRWTMJgAASxT56A (envelope-from ) for ; Sun, 23 Apr 2023 16:40:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aOy4KUVDRWS/vwAAauVa8A (envelope-from ) for ; Sun, 23 Apr 2023 16:40:05 +0200 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 8B8DB35CB1 for ; Sun, 23 Apr 2023 16:40:05 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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=1682260805; h=from:from:sender:sender:reply-to: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; bh=/Kg3Y97szKTJ49SJuwGARR2+BUB4IGksCkCMzsG+ZQ0=; b=cmdHi4kvfg07CwwE4IsLTzSEUVk5IowKoVSuieAilNDzHeoLiGiyxd2kwArxLD1D6ohYAG 7+bRR/Qy772zxPx8ijfKpMcpPYW9ug/Pd2916+SLCILH2rB0J+uRpPjU9hmQ/fs4soqwh0 zde5GErMlTT9PWrfanX5gc25IIgC04AmujwFGEL0AniuW6tMHjPFHCbQor3TYL4TPUOv/v RxeV11uTVgqNJUWSgT4wYVf2YAKehT2OnC1KFEcTe5d+9mXhcERZ8OPviYhH8JkDzssWTU U4ZYlmnQZWF4KII6Uio0e9bEJPQ28pTWiUlilotIhnX3J0A1FXeIgt+6YDj96A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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=1682260805; a=rsa-sha256; cv=none; b=k39w4L44f1aq/+DiPcW79bPIlsZknwgB1n/yahZpT6v9chZE7glCTFbM9qAc68rwIAv9I0 6wFZUCuW/lgj5/wiRaT4Mgxnqb6nwNUxQZczlmRzwidcNACJXDKw+Xa1iW0EwGB5iufbLC qLUcDv6c8FFyf/LkimH7Zppzo0ITlKLWfTLyzsWPUowTpmniai2bxBzCzr7Nmtjh4xS7z5 dUZh0rgCoK1lmkw97h6rVQqSflL9LiY0oa8tWZmBVFAOWQdVHdaATF8ST+yRab5DZ4KMx9 F9pb0W59Djh/JBerj6H+7Py/NdHN2jVqn4dylZszJCFm6xXl/+VopRMp1cR2dQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqaYf-0001bT-H9; Sun, 23 Apr 2023 10:19:17 -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 1pqaYd-0001bD-5U for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 10:19:15 -0400 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqaYb-0001ic-Ow for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 10:19:14 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 17db67d9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 23 Apr 2023 14:19:11 +0000 (UTC) References: <87fs8quapc.fsf@localhost> User-agent: mu4e 1.9.22; emacs 30.0.50 To: Gustavo Barros Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: How to disable org-persist in a given file? Date: Sun, 23 Apr 2023 21:35:10 +0800 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." 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: UNKNOWN X-Migadu-Spam-Score: -1.56 X-Spam-Score: -1.56 X-Migadu-Queue-Id: 8B8DB35CB1 X-Migadu-Scanner: in3.migadu.com X-TUID: 4YiCqCOt5gTc Gustavo Barros writes: >> You can use `org-persist-before-write-hook' to disable writing >> selectively. > > Thanks! That's the one. Though it would be nice if a variable existed > for the purpose. `(add-hook 'org-persist-before-write-hook (lambda > (&rest _args) t) nil t)' is not our average file local variable. :) (lambda (&rest _args) t) Side track: remember that you have `always' and `ignore' in your collection of functions. :) -- Best, RY [Please note that this mail might go to spam due to some misconfiguration in my mail server -- still investigating.]