From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WFYFARx1V2CIZAAA0tVLHw (envelope-from ) for ; Sun, 21 Mar 2021 16:32:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8F5kOBt1V2ByNAAAB5/wlQ (envelope-from ) for ; Sun, 21 Mar 2021 16:32:27 +0000 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 6485D292BA for ; Sun, 21 Mar 2021 17:32:27 +0100 (CET) Received: from localhost ([::1]:45420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO106-00047p-EJ for larch@yhetil.org; Sun, 21 Mar 2021 12:32:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO0zA-00047Q-0n for emacs-orgmode@gnu.org; Sun, 21 Mar 2021 12:31:28 -0400 Received: from out2.migadu.com ([188.165.223.204]:17265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO0z4-0000Eb-NO for emacs-orgmode@gnu.org; Sun, 21 Mar 2021 12:31:27 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1616344279; h=from:from: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; bh=6peiZxz5/KzlgtXtnLDNrFa1+OSd9jJyK+PMRheiirc=; b=HX3xbpqC2sPKJi7i1MPDtFsSnKrrceyTS1UTy5HMbp1Y7snX/iMF1llSzGMilWWRIEnAQQ SsvoUH32blXmxwn2nx5VXB8YkONRplKj29E9EBkMamyenYe5VC+2CMslmSlMrMvDKK53U9 SKMR5DWibkRvlb2XGO/qnnosRrIOdZOv8TeIAAx47sUrJkrS/pcXSGOEpMEnB+m9nPLVzI u9UpeLzytmahmvT2YD1VT0U488rVFynULXNDPlxv0lFMVU1AHeTXdW6vjd9A2K4Nb88NnM pG3c3fvCL+y4V9J8hQPfVa8YyzFNl1aQxW7Bg7lAUOkcXex6z/uFDIPPgCvzuQ== From: Kyle Meyer To: Loris Bennett Subject: Re: Invalid function: org-preserve-local-variables In-Reply-To: <87wnu8g5t7.fsf@hornfels.zedat.fu-berlin.de> References: <87wnu8g5t7.fsf@hornfels.zedat.fu-berlin.de> Date: Sun, 21 Mar 2021 12:31:17 -0400 Message-ID: <87a6qwv57u.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=188.165.223.204; envelope-from=kyle@kyleam.com; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org Mode Mailing List Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616344347; 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=6peiZxz5/KzlgtXtnLDNrFa1+OSd9jJyK+PMRheiirc=; b=Yw1bK0mNtp0axwpxdsdZQ4VdWUzMTJ8GYfkvi3vfjlsuzDqBJzSGH3VvTMRVjDFBrvcKlH zrqkV3lurxf3M4IT3QK/fXK1XSUjuHCUTscY6NVKBkG+kbr317TCQrE4l7VNvtL893Io6p xgUyu9gvWKpLlxcEW+A26UHSv91EqPEwJiEzm/68DbZ2s7H0+dXKM8DVh2DNSNHHZcL76d sVJhH1VK0kb1WGbp8cww4Sb9HB3yBs8/Th8+ee993o+1gYSWadmfnVOAi/I4l3dvXdOoHl yH/+O1PiNECswFCV0tdFzcPLa0kqC6nZyk1H/Zczcw9gXxKMHb98iZyPXDLLmg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616344347; a=rsa-sha256; cv=none; b=BWVjHcdtNeq6e71D1mrkzU/SOY8fYnH1w6hB7x+nFY3pXBNBjDBez0q0a+2reZNI4Ob0p5 7f9iDpOGwrn1NtsnLorfGSkL/tUI2nHzdtKWNdfCXVgmoM/DOX22RHF/4qMPw73iZ7zluN ozgSAKpRMltqaS3bz38dSSGi/Q8hpKITvqVRY33f0q/7kTGX74PhHXggROJC8rXDFq1jhE OXSSiKXAUoYu4Lav0Gx/XRwowjlpc9J+6f0oLPQbduWtIVHg1tLsEnfB96eWoR2ymX480a vIBCaDi1aZZ53JL6uCnMVRessHqRuymPPufPEHG4eKgA8ez3PBQ0N30rAP+KxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=HX3xbpqC; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=HX3xbpqC; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6485D292BA X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: KEU02Z2vhc8g Loris Bennett writes: > Hi, > > I'm running > > Org mode version 9.4.4 (9.4.4-25-g3a522a-elpaplus @ /home/loris/.emacs.d/elpa/org-plus-contrib-20210222/) > > and today I encountered the following error when refiling > > org-refile: Invalid function: org-preserve-local-variables > > Despite the error, the refiling itself did however work. > > I am fairly sure that I have refiled without seeing this error message > since I last updated Org, thus I am somewhat surprised by it. org-preserve-local-variables is a macro defined in org-macs.el. That file is loaded by org.el, which is loaded by org-refile.el. So, I think everything looks fine there. My guess---especially if you're running Emacs 26 or lower, which ships with an Org that didn't yet have org-preserve-local-variables---is that you have a mixed installation. list-load-path-shadows might reveal the problem. https://orgmode.org/worg/org-faq.html#mixed-install