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 ML0jDQrvWmAiPQAA0tVLHw (envelope-from ) for ; Wed, 24 Mar 2021 07:49:30 +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 EDwFCQrvWmAyVwAAB5/wlQ (envelope-from ) for ; Wed, 24 Mar 2021 07:49:30 +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 4308B16ADF for ; Wed, 24 Mar 2021 08:49:29 +0100 (CET) Received: from localhost ([::1]:41930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOyGd-0008Sw-1n for larch@yhetil.org; Wed, 24 Mar 2021 03:49:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOyFR-0008Sp-DQ for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 03:48:13 -0400 Received: from ciao.gmane.io ([116.202.254.214]:46522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOyFM-00066G-9E for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 03:48:09 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lOyFJ-0009rE-Ps for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 08:48:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: "Loris Bennett" Subject: Re: Invalid function: org-preserve-local-variables Date: Wed, 24 Mar 2021 08:47:57 +0100 Message-ID: <87a6qtkn6a.fsf@hornfels.zedat.fu-berlin.de> References: <87wnu8g5t7.fsf@hornfels.zedat.fu-berlin.de> <87a6qwv57u.fsf@kyleam.com> <877dlz7jpo.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:y+IYnp3pHmN3KJ1GjtpK4XB9Crs= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1616572170; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=yiJ/J8BKMipiSBwJDJwk6GWvEw1vj5nFnN3H552sHhY=; b=T5xzkFVRwgn01dQkbJBKlzbrnlHp+u7gqT84mtovXoCoTSVVt4Cl1j5Dus446YD847UyiZ I20Z7xp1aZ5wyEqRgQo2fsgFmFPQYP1gqKUp9ko49i/y6A0IQwXzD3qGwZwiZMM0ODNZIZ OobEIoXBU6elSy2LlcBTde+lS5/Q6r+WNquSmp9j/+PaMtVH9j47/OBWtt+RgQuARxz+jp gkwtyG03ExAEI6yd/R+PQ+2W8Cog8FyD4eAFdLk8nukgTmhHZH0B6G8NxO2lQuGitWBin6 NYSE2eueXiJSCk/ZRMhjo2pQZl2j8WCb2nOfruxJ4fN8bAyultexm7Y012wfFQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616572170; a=rsa-sha256; cv=none; b=gm8Ti65aPjRx6ZQzQvYcK+OQ94ZL+dng33Dzg6fJmOJoy/dlz5mSsKxC6Cu4P8cwXtBtDq YH+lSkMD5UaSfCoU+/n4VF+oq78ELKgAvXMiiKinPSGXqXgfCsxzA2gPZh1Akgc2RGm7mZ rKgaI0eqHE2gJ9ncVomJDpRXHrjzkWrNuivOy5uac6+3cjFC3Xo67Br27PNA5Ic9vuBOuH IZt+alhsi/M9ELt7CiWxGIZU3pvk4pm1ktOMyIPpo7jOrgdWrIWrJUceSYf2zWjN7FKqGb BasxYbJsFdeYCrRUgeHrGw2XY6iGjTG1MExDUHaiRRTyT+nV4/CcMoqIMK0qvg== 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: -1.92 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: 4308B16ADF X-Spam-Score: -1.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1irNA5l3yWIZ "Loris Bennett" writes: > 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. I have removed 'org' and now list-load-path-shadows just shows the Elpa Org hiding the version installed with Emacs in the OS (Debian 10) plus the following /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/26.1/lisp/textmodes/rst but that doesn't look like anything to worry about. However, I am still getting org-refile: Invalid function: org-preserve-local-variables when I refile, although the refiling works. Any ideas where else I could look? Cheers, Loris -- This signature is currently under construction.