Re: Invalid function: org-preserve-local-variables
"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.
Re: Invalid function: org-preserve-local-variables
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.
Re: Invalid function: org-preserve-local-variables
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
Invalid function: org-preserve-local-variables
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.
Re: Bug: 20200525 release: invalid function: org-preserve-local-variables [9.3.6 (9.3.6-75-gb614ed-elpa @ /home/jgoerzen/.emacs.d/elpa/org-20200525/)]
John Goerzen writes: > I recently have upgraded to org 20200525 from your package repo because > org-roam requires a newer org-mode than I had. GNU ELPA has 9.3.6, > which would be new enough, but all of my machines fail downloading the > tar of that version from ELPA with "invalid request", so I'm on > 20200525. > > Many actions, and in particular refile, produce: > > Invalid function: org-preserve-local-variables > > and fail. > > (org-refile) is defined in org.el but why it doesn't seem to be seeing > org-macs is beyond me. I installed elpa/org-20200525 in a vanilla environment, and I wasn't able to trigger any similar failures when refiling. My best guess is that it's due to an interaction with the older Org that comes built-in with Emacs and lacks the org-preserve-local-variables macro. It's probably worth uninstalling/reinstalling, making sure the built-in Org isn't loaded.
Bug: 20200525 release: invalid function: org-preserve-local-variables [9.3.6 (9.3.6-75-gb614ed-elpa @ /home/jgoerzen/.emacs.d/elpa/org-20200525/)]
Hello, First of all, THANKS for org-mode! I have been using it for several years, and it's fantastic. I recently have upgraded to org 20200525 from your package repo because org-roam requires a newer org-mode than I had. GNU ELPA has 9.3.6, which would be new enough, but all of my machines fail downloading the tar of that version from ELPA with "invalid request", so I'm on 20200525. Many actions, and in particular refile, produce: Invalid function: org-preserve-local-variables and fail. (org-refile) is defined in org.el but why it doesn't seem to be seeing org-macs is beyond me. Emacs : GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-22, modified by Debian Package: Org mode version 9.3.6 (9.3.6-75-gb614ed-elpa @ /home/jgoerzen/.emacs.d/elpa/org-20200525/)
Re: [O] Bug: org-copy-subtree: Invalid function: org-preserve-local-variables
Updating to the latest org-mode (9.2.1) seems to solve this issue. On Sun, Feb 3, 2019 at 4:40 PM Abdo Haji-Ali wrote: > I just updated emacs to 27.0.50 and I am seeing the exact same error. > I think org-preserve-local-variables is in org-macs which is part of > org-mode source code. > > On Sun, Feb 3, 2019 at 4:14 PM Kyle Meyer wrote: > > > > Hello, > > > > Abdo Haji-Ali writes: > > > > > On the latest org-mode version, 9.2, I keep receiving the error > > > 'org-copy-subtree: Invalid function: org-preserve-local-variables' > > > whenever I try to move a subtree or when I access my agenda. > > > > > > This happens even if I run emacs with '-Q'. > > > > > > Emacs : GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version > 3.22.10) > > > > This is very likely a problem in your Org installation due to an > > interaction with the Org version that comes with Emacs 25. (It lacks > > the macro org-preserve-local-variables.) > > > > See <https://orgmode.org/worg/org-faq.html#mixed-install>. > > > > -- > Abdo Haji-Ali > -- Abdo Haji-Ali
Re: [O] Bug: org-copy-subtree: Invalid function: org-preserve-local-variables
I just updated emacs to 27.0.50 and I am seeing the exact same error. I think org-preserve-local-variables is in org-macs which is part of org-mode source code. On Sun, Feb 3, 2019 at 4:14 PM Kyle Meyer wrote: > > Hello, > > Abdo Haji-Ali writes: > > > On the latest org-mode version, 9.2, I keep receiving the error > > 'org-copy-subtree: Invalid function: org-preserve-local-variables' > > whenever I try to move a subtree or when I access my agenda. > > > > This happens even if I run emacs with '-Q'. > > > > Emacs : GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.10) > > This is very likely a problem in your Org installation due to an > interaction with the Org version that comes with Emacs 25. (It lacks > the macro org-preserve-local-variables.) > > See <https://orgmode.org/worg/org-faq.html#mixed-install>. -- Abdo Haji-Ali
Re: [O] Bug: org-copy-subtree: Invalid function: org-preserve-local-variables
Hello, Abdo Haji-Ali writes: > On the latest org-mode version, 9.2, I keep receiving the error > 'org-copy-subtree: Invalid function: org-preserve-local-variables' > whenever I try to move a subtree or when I access my agenda. > > This happens even if I run emacs with '-Q'. > > Emacs : GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.10) This is very likely a problem in your Org installation due to an interaction with the Org version that comes with Emacs 25. (It lacks the macro org-preserve-local-variables.) See <https://orgmode.org/worg/org-faq.html#mixed-install>.
[O] Bug: org-copy-subtree: Invalid function: org-preserve-local-variables
On the latest org-mode version, 9.2, I keep receiving the error 'org-copy-subtree: Invalid function: org-preserve-local-variables' whenever I try to move a subtree or when I access my agenda. This happens even if I run emacs with '-Q'. Emacs : GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.10) of 2017-10-30 Package: Org mode version 9.2 (9.2-43-gf9a8cc-elpa @ /home/ah180/.emacs.d/elpa/org-20190128/) current state: == (setq org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-occur-hook '(org-first-headline-recenter) org-src-tab-acts-natively t org-metaup-hook '(org-babel-load-in-session-maybe) org-capture-after-finalize-hook '((lambda nil (org-gcal-sync))) org-src-window-setup 'current-window org-confirm-shell-link-function 'yes-or-no-p org-gcal-file-alist '(("abdo.haji@gmail.com" . "~/Work/Projects/dropbox-git/gcal.org")) org-tab-before-tab-emulation-hook '(org-tempo-complete-tag) org-agenda-custom-commands '(("c" "Simple agenda view" ((agenda "") (alltodo "" org-default-notes-file "~/Work/Projects/dropbox-git/tasks.org" org-todo-keyword-faces '(("TODO" :foreground "#00" :weight bold :box (:line-width 1 :style none)) ("NEXT" :foreground "red" :weight bold :box (:line-width 1 :style none)) ("DONE" :foreground "forest green" :weight bold :box (:line-width 1 :style none)) ("WAITING" :foreground "orange" :weight bold :box (:line-width 1 :style none)) ("HOLD" :foreground "cyan" :weight bold :box (:line-width 1 :style none)) ("CANCELLED" :foreground "forest green" :weight bold :box (:line-width 1 :style none)) ) org-startup-indented t org-after-todo-state-change-hook '(org-clock-out-if-current) org-from-is-user-regexp "\\" org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(org-tempo-setup (lambda nil (org-bullets-mode)) #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9)) org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING" ("WAITING" . t)) ("HOLD" ("WAITING") ("HOLD" . t)) (done ("WAITING") ("HOLD")) ("TODO" ("WAITING") ("CANCELLED") ("HOLD")) ("NEXT" ("WAITING") ("CANCELLED") ("HOLD")) ("DONE" ("WAITING") ("CANCELLED") ("HOLD"))) org-archive-hook '(org-attach-archive-delete-maybe) org-directory "~/Work/Projects/dropbox-git/" org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAITING(w)" "|" "DONE(d)") (sequence "HOLD(h@/!)" "|" "CANCELLED(c@/!)")) org-modules '(org-tempo org-w3m org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe org-rmail org-eww) org-capture-before-finalize-hook '(org-gcal--capture-post) org-gcal-client-secret "L87mfr8h7vhETM1jRUn9Hdwy" org-confirm-elisp-link-function 'yes-or-no-p org-gcal-client-id "543829701868-rl0ndisa6fk111rv0s1vq0eeiu7dfcsa.apps.googleusercontent.com" org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("id" :follow org-id-open) ("eww" :follow eww :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-vis
Re: [O] org-copy-subtree: Invalid function: org-preserve-local-variables
Hello, Britt Anderson writes: > Using org version 9.2 and emacs version 26.1 I received the error in the > subject line when trying to move or archive subtrees. It seems to me > that this is related to the > > (eval-and-compile (require 'org-macs)) > > line in org.el as replacing it with (require 'org-macs) solved that > problem. > > Can someone tell me whether this is actually related to something else > that I may have set up faulty or whether there is a more correct fix. This was introduced recently by Aaron Ecay in commit 581fd9064535bef40c620bbd8f8d1fa0b28feb66. I'm Cc'ing him as he may know if we can safely remove that. Regards, -- Nicolas Goaziou
[O] org-copy-subtree: Invalid function: org-preserve-local-variables
Using org version 9.2 and emacs version 26.1 I received the error in the subject line when trying to move or archive subtrees. It seems to me that this is related to the (eval-and-compile (require 'org-macs)) line in org.el as replacing it with (require 'org-macs) solved that problem. Can someone tell me whether this is actually related to something else that I may have set up faulty or whether there is a more correct fix. Thanks,