Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deft load errors when org not loaded #31

Closed
articuluxe opened this issue Jun 2, 2016 · 5 comments
Closed

deft load errors when org not loaded #31

articuluxe opened this issue Jun 2, 2016 · 5 comments
Labels

Comments

@articuluxe
Copy link

deft 0.7, emacs 24.5.1
I have org autoloaded, and when I launch deft before org, I get the following backtrace:

Debugger entered--Lisp error: (void-function org-add-link-type)
(org-add-link-type "deft" (function (lambda (handle) (org-open-file-with-emacs (expand-file-name handle deft-directory)))))
eval-buffer(#<buffer load> nil "/Users/dharms/.emacs.d/plugins/deft.el" nil t) ; Reading at buffer position 67056
load-with-code-conversion("/Users/dharms/.emacs.d/plugins/deft.el" "/Users/dharms/.emacs.d/plugins/deft.el" nil t)
autoload-do-load((autoload "deft" nil t nil) deft)
command-execute(deft)

@jrblevin jrblevin added the bug label Jun 2, 2016
@jrblevin
Copy link
Owner

jrblevin commented Jun 2, 2016

Thanks for reporting this. Any org users have thoughts on the best way to resolve this? I don't want Deft to require org, but otherwise registering the org link type will not work unless the load order is correct.

/cc @Kungsgeten

@glucas
Copy link
Contributor

glucas commented Jun 2, 2016

Haven't tried, but I think you could just wrap the org-related setup in a (with-eval-after-load 'org ...) so that it only happens if and when org is loaded.

@jrblevin
Copy link
Owner

jrblevin commented Jun 2, 2016

Thanks for the pointer. I think this is fixed now: a040f04. Let me know if not.

@Kungsgeten
Copy link
Contributor

Yeah, that should work.

@articuluxe
Copy link
Author

This works, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants