On 22/03/2021 00:44, Greg Minshall wrote:
hi. i occasionally want to switch from the org package to a git
version, then back again. and, i want to avoid the dread "mixed
installation".
Do you really need to switch or just to launch it a couple of times? Is
it required to run namely compiled version?
Actually I am unsure if the following way is reliable or it has some
problems that I have not discovered yet.
emacs -q -L ~/src/org-mode/lisp -L ~/src/org-mode/contrib/lisp file.org
Unfortunately -L (--directory) options are processed after
~/.emacs.d/init.el, that is why -q (--no-init-file) is added. I had
(require 'org-protocol) in init.el file and a part of org bundled with
emacs were loaded before processing of -L. If there is no setup for
alternative org version, the file could be loaded after -L options using
-l ~/emacs.d/init.el (--load), alternatively a bit cleaned variant of
init.el from another directory could be specified.
I do not recommend to skip contrib directory. I noticed that due to
system-wide configs some files could be loaded from older org contrib.