* Invalid function: org-preserve-local-variables
@ 2021-03-15 8:49 Loris Bennett
2021-03-21 16:31 ` Kyle Meyer
0 siblings, 1 reply; 4+ messages in thread
From: Loris Bennett @ 2021-03-15 8:49 UTC (permalink / raw)
To: Org Mode Mailing List
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.
Does anyone know where it might be coming from?
Cheers,
Loris
--
This signature is currently under construction.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Invalid function: org-preserve-local-variables
2021-03-15 8:49 Invalid function: org-preserve-local-variables Loris Bennett
@ 2021-03-21 16:31 ` Kyle Meyer
2021-03-22 7:04 ` Loris Bennett
0 siblings, 1 reply; 4+ messages in thread
From: Kyle Meyer @ 2021-03-21 16:31 UTC (permalink / raw)
To: Loris Bennett; +Cc: Org Mode Mailing List
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Invalid function: org-preserve-local-variables
2021-03-21 16:31 ` Kyle Meyer
@ 2021-03-22 7:04 ` Loris Bennett
2021-03-24 7:47 ` Loris Bennett
0 siblings, 1 reply; 4+ messages in thread
From: Loris Bennett @ 2021-03-22 7:04 UTC (permalink / raw)
To: Kyle Meyer; +Cc: Org Mode Mailing List
Kyle Meyer <kyle@kyleam.com> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Invalid function: org-preserve-local-variables
2021-03-22 7:04 ` Loris Bennett
@ 2021-03-24 7:47 ` Loris Bennett
0 siblings, 0 replies; 4+ messages in thread
From: Loris Bennett @ 2021-03-24 7:47 UTC (permalink / raw)
To: emacs-orgmode
"Loris Bennett" <loris.bennett@fu-berlin.de> writes:
> Kyle Meyer <kyle@kyleam.com> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-24 7:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-15 8:49 Invalid function: org-preserve-local-variables Loris Bennett
2021-03-21 16:31 ` Kyle Meyer
2021-03-22 7:04 ` Loris Bennett
2021-03-24 7:47 ` Loris Bennett
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).