From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kMtsAM5BWGB0DwAA0tVLHw (envelope-from ) for ; Mon, 22 Mar 2021 07:05:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uMbzN81BWGChGAAAB5/wlQ (envelope-from ) for ; Mon, 22 Mar 2021 07:05:49 +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 63AD22DF42 for ; Mon, 22 Mar 2021 08:05:49 +0100 (CET) Received: from localhost ([::1]:42256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOEdH-00036s-Qi for larch@yhetil.org; Mon, 22 Mar 2021 03:05:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOEcH-00036K-BI for emacs-orgmode@gnu.org; Mon, 22 Mar 2021 03:04:45 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:34039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOEcD-0007G3-LW for emacs-orgmode@gnu.org; Mon, 22 Mar 2021 03:04:45 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lOEbr-0036M9-Sl; Mon, 22 Mar 2021 08:04:19 +0100 Received: from 130-133-144-203.mna.fu-berlin.de ([130.133.144.203] helo=hornfels) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lOEbr-003tCR-KW; Mon, 22 Mar 2021 08:04:19 +0100 From: "Loris Bennett" To: Kyle Meyer Subject: Re: Invalid function: org-preserve-local-variables References: <87wnu8g5t7.fsf@hornfels.zedat.fu-berlin.de> <87a6qwv57u.fsf@kyleam.com> Date: Mon, 22 Mar 2021 08:04:19 +0100 In-Reply-To: <87a6qwv57u.fsf@kyleam.com> (Kyle Meyer's message of "Sun, 21 Mar 2021 12:31:17 -0400") Message-ID: <877dlz7jpo.fsf@hornfels.zedat.fu-berlin.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Original-Sender: loris.bennett@fu-berlin.de X-Originating-IP: 130.133.144.203 Received-SPF: pass client-ip=130.133.4.66; envelope-from=loris@zedat.fu-berlin.de; helo=outpost1.zedat.fu-berlin.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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=1616396749; 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; bh=L43RqbRHDHv3tTxE7vSodAT2vLzAxnp3hwRSQe4e0Os=; b=cnU3adTniW+SRr0M4z/4RXF9C1qH2FbWgptA3ueFq0CQ34jdFNpfQgzIAu3ff9bvhoRbDK rcsMjVFG+s1DrzotAaBn3QMsiCA+kfbcq+NQamwPdCrD8eNL0hRohCjR/AcVt/QarXD0om 775aCmlN3wEUYLZ0JtB6bCLFYkC8ZiQJ0mv7drx7ATZ4l/TZA4IT3MsSn7QwyY8v+kMGPg lToH4wFng84rpdPRASbT3Gs91Q12Q6bW7uRKP4lh80JRWLgqCcvaWht7eY+g/SEorgGeiL bwAXCuooy/rnrf5PZ7kraVEwCNybMo4Xxx3YGWI3vG3z29UVWa05dxKaGvMu8A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616396749; a=rsa-sha256; cv=none; b=FVrHEyI5hq1anT0Ofu1EVtb66gEiDRfqkDqDPEshKW9t2OkeImmN9/vdN6MD9AowHVqhxq Lwc8yPyKHTQ8gS7SZjd1RnYWuvx/Rzc3gt4Wa7vOMyFq3x/faAD51EKzmldxsB6rW1yS00 X98rxkQkOs16ZSf3oq85uAfC36pe+gNbhcnNvH4RqRXmwqWPwKqVHOF2Uo6s/mZM5A38/U xDyHxE8PfJlULVEcMfE13xBZl4Tktcs5tRoV/vsAZpGm4qy7b5SR5rBPNttFVbQ1yshjFE STEJOEHfTNj64RWP3bT9K4E7WO8d3HMptkiNGL7BtQxsCUKfARsg9bfANKJu5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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.42 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 63AD22DF42 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: csCYwaGP6a4N Kyle Meyer writes: > 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 Thanks for the information and the suggestions. I am running 26.1. The Org version is Org mode version 9.4.4 (9.4.4-25-g3a522a-elpaplus @ /home/loris/.emacs.d/elpa/org-plus-contrib-20210222/) list-load-path-shadows lots of lines like /home/loris/.emacs.d/elpa/org-plus-contrib-20210222/ox-md hides /home/loris/.emacs.d/elpa/org-20210222/ox-md where elpa/org-plus-contrib hides elpa/org, and lots of lines like /home/loris/.emacs.d/elpa/org-plus-contrib-20210222/ox-md hides /usr/share/emacs/26.1/lisp/org/ox-md where elpa/org-plus-contrib hides Org from the OS. Having both org and org-plus-contrib installed from ELPA has always bothered me a bit, but I seem to remember that certainly at some point several years ago, there was an issue (to do with dependencies? or use-package?) which meant I had some problems with org-plus-contrib on its own. Maybe that was wrong back then and maybe is still wrong now. However, duckduckgoing a bit I find the following issue https://github.com/jwiegley/use-package/issues/597 from a few years back. Maybe that's what I was hitting. I'll change make my set-up to just use org-plus-contrib and see whether I can reproduce the org-preserve-local-variables error. Cheers, Loris -- This signature is currently under construction.