From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>, lukasz@gruner.lu
Subject: Re: org-capture templates broken?
Date: Tue, 3 Nov 2015 13:51:31 -0500 [thread overview]
Message-ID: <CAFyQvY3=twLdh-=xT6CaM0e2StfkO4M_+G95-ee9BT0BqzS73Q@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY04hccMMng1TTS=v0F20v6XnXViPMPYkv5=A+OiQ_a5ng@mail.gmail.com>
The issue got fixed when I changed the below in my local.mk file and
rebuilt org:
From
ORG_ADD_CONTRIB = org-mime org-eww
To
ORG_ADD_CONTRIB = org-eldoc org-mime org-eww
I figured out why I was seeing the problem:
I have org-plus-contrib installed too. So when `package-initialize`
was called, the below bare form in org-eldoc.el (installed via
org-plus-contrib) got evaluated too:
(add-hook 'org-mode-hook #'org-eldoc-load)
I like to have both stable and dev version installed so that I can
switch to the stable version in case of emergency. So I have this
snippet in my org setup:
;; If `org-load-version-dev' is non-nil, remove the stable version of org
;; from the `load-path'.
(when (bound-and-true-p org-load-version-dev)
(when (version<= "25.0" emacs-version) ;
`directory-files-recursively' is not available in older emacsen
(let ((org-stable-install-path (car (directory-files-recursively
package-user-dir
"org-plus-contrib-[0-9]+"
:include-directories))))
(setq load-path (delete org-stable-install-path load-path)))))
That basically removes the org-plus-contrib dir from the load-path if
I choose to use the dev version of org-mode. But that still keeps
`org-eldoc-load' in the org-mode-hook.
@Lucas: I would propose to not update the org-mode-hook automatically;
that add-hook should not be bare in the org-eldoc.el. It should be
updated only via a function call.
--
Kaushal Modi
prev parent reply other threads:[~2015-11-03 18:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-03 17:08 org-capture templates broken? Kaushal Modi
2015-11-03 18:04 ` Kaushal Modi
2015-11-03 18:51 ` Kaushal Modi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFyQvY3=twLdh-=xT6CaM0e2StfkO4M_+G95-ee9BT0BqzS73Q@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=lukasz@gruner.lu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).