-
Notifications
You must be signed in to change notification settings - Fork 260
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
Autoloading problems with org-mode #135
Comments
I expect this should work: (use-package org-package
:bind ("C-c c" . org-capture)) |
It fails with this message: "Cannot open load file: no such file or directory, org-package" |
Crap sorry, I had a thinko. I meant (use-package org-capture
:bind ("C-c c" . org-capture)) |
The package on ELPA is named “org”, so that’s what I used. This is just a minimally reproducible example, my configuration uses many other commands from it, not just org-capture. On Dec 10, 2014, at 2:27 PM, Noam Postavsky notifications@github.com wrote:
|
Maybe |
This is org-mode that comes bundled with Emacs, not installed from a package repo. So whatever autoloads are set up out of the box are fine, until :bind messes with them. Maybe binding in “:init” is the right thing to do then, if there is no way around reconciling the multiple .el files that different commands come from in this case. org-version: 8.2.10 On Dec 10, 2014, at 2:44 PM, Noam Postavsky notifications@github.com wrote:
|
Does this patch fix the problem ? YoungFrog/use-package@6f392b1 |
How do I try it out so it’s picked up instead of the version I currently have from MELPA? Is there a variant of “package-install” where I can give it a repo URL or local directory? On Dec 11, 2014, at 2:49 AM, Nicolas Richard notifications@github.com wrote:
|
Nevermind, I just patched it directly in my "elpa" directory. Yes, it worked. |
@YoungFrog are you planning on a PR for your fix? |
Le 17/12/2014 18:16, Peter Hoeg a écrit :
Oops, sorry about that ! Clicking on buttons is hard :) Done now. I even rebased the change on top of master. I hope I didn't |
Mine just look like this, some of the :commands are just functions defined in my :config
|
@thomasf I'm sorry I'm not sure I followed you. Do I understand right that you are reporting something to work around the initial problem ? |
Oh, yes.. I think I misread the situation, followed too many links without checking the context. |
@thomasf Is there still work needing to be done here, or should we close this? I had to revert @YoungFrog's fix mentioned above, so if that still needs to be addressed, we should open a new issue for it. |
@cubranic |
@thomasf Thank you! I had to look through the list of issues until I found this, so it would be nice to add something like this to the readme:
I am not sure where, though. At the bottom, in a new section called |
When I try to use org-mode with:
when I press "C-c c", I get the following error message: "Autoloading failed to define function org-capture".
I can solve this in two ways, but both seem kludgey:
:demand
keyword:init
, which works even if I defer the loading of the package:Since workaround 2 does not mess up the auto loads, is there a bug in how using
:bind
sets them up?The text was updated successfully, but these errors were encountered: