I get the above error when trying to archive my org agenda using C-c C-x C-a
and/or C-c C-x C-s
, according to instructions over here. My archive location is set the default.
UPDATE:
After following @Tobias' instruction below, I get this error when using TAB
on my headings to fold them:
org-cycle-internal-local: Symbol’s function definition is void: org-flag-region [7 times]
I just installed the newest version. Now I have two separate org.el
:
./.emacs.d/elpa/org-20190701/org.el
./.emacs.d/elpa/org-20190624/org.el
But the flag region issue still persists.
I think Emacs seem to be confused over which init.el
to read as well, because all my settings are left unevaluated after a restart.
Can't seem to locate the system org.el
(if it exists).
Follow-up QUESTION
A natural follow-up question would be: How to prevent such confused situation when updating org
to the newer version?
org-mode
repository that I cloned with the following command-line as of today (06/29/2019)git clone https://code.orgmode.org/bzg/org-mode.git
, I grepped for the regexorg-show-all
. I see that the functionorg-show-all
is defined in the fileorg.el
beginning at line 6115 -- the line number will vary depending upon the version oforg-mode
and the date theorg.el
file was modified by the developers. Therefore, you might want to try(require 'org)
so that the file gets loaded before doing whatever it is that you want to do ... – lawlist Jun 30 '19 at 5:19org-mode
you are using -- perhaps you have a stock version that shipped with Emacs and you installed a newer version oforg-mode
and your installation is confused ... If you have the*.el
files you can grep them, or there is a grep option for certain versions of grep that can scangz
-ipped files -- search fordefun org-show-all
to see where it is defined ... – lawlist Jun 30 '19 at 5:31M-x org-version
show? I guess you havemixed installation
in your version string. I think the version you installed fights the built-in version and the built inorg.el
does not yet haveorg-show-all
. You can test that withM-x load-library org
. Sinceorg-agenda.el
has been loaded from the new reproorg.el
should also be loaded from the new repro on explicit call ofload-library
. If you are not sure whichorg.el
is found by Emacs you can also callM-x locate-library org
. – Tobias Jul 1 '19 at 8:08