kjhealy / emacs-starter-kit

NO LONGER MAINTAINED! A drop-in starter-kit for Emacs 24, aimed at social scientists researching and writing in plain text using some combination of LaTeX, R, ESS, Git, Markdown, and Org-Mode.
http://kieranhealy.org/resources/emacs-starter-kit.html
165 stars 69 forks source link

Warning (initialization): Your `load-path' seems to contain your `.emacs.d' directory #17

Closed pauljamesharper closed 9 years ago

pauljamesharper commented 9 years ago

I am using GNU Emacs 24.4.50.1 with Org-mode version 8.2.6 on Fedora 20.

I am getting the following Warning when I load the Starter Kit for the Social Sciences:

Warning (initialization): An error occurred while loading `/home/pharper/.emacs.d/init.el':

File error: Cannot open load file, no such file or directory, org-special-blocks

To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the --debug-init' option to view a complete error backtrace. Warning (initialization): Yourload-path' seems to contain your `.emacs.d' directory: /home/pharper/.emacs.d/ This is likely to cause problems... Consider using a subdirectory instead, e.g.: /home/pharper/.emacs.d/lisp

As the Emacs Starter Kit is based of Eric Schulte's I tried his version. I don't get the same error. Eric Schulte appears to have modified the Load Path so the error no longer occurs.

Eric has made changes in his version of the starter kit as noted in this bug report.

https://github.com/eschulte/emacs24-starter-kit/issues/49

For detail: https://github.com/eschulte/emacs24-starter-kit/commit/a0e81cb5

I am very new to Emacs. My knowledge of Lisp is zero. I am going to try to figure out this load path issue. But I thought I would raise it to your attention. If I find a solution I'll post back.

kjhealy commented 9 years ago

Thanks for this. Looks like I'll have to fix this for the new Emacs 24. Are you using the master branch of the kit or the orgv8 branch?

pauljamesharper commented 9 years ago

I did use the orgv8 branch. On Jul 16, 2014 9:28 PM, "Kieran Healy" notifications@github.com wrote:

Thanks for this. Looks like I'll have to fix this for the new Emacs 24. Are you using the master branch of the kit or the orgv8 branch?

Reply to this email directly or view it on GitHub https://github.com/kjhealy/emacs-starter-kit/issues/17#issuecomment-49173383 .

kjhealy commented 9 years ago

~/.emacs.d/ should no longer be added to load-path now.

joncgoodwin commented 9 years ago

I still get this error after applying your fix.

kjhealy commented 9 years ago

Thanks; I'll take another look.

kjhealy commented 9 years ago

I pushed another fix. I tested it with the Emacs 24.3.92 pretest build and a clean clone of the starter kit. Things seem to be working OK. This also threw up a new issue with the latest version of auctex, which I also fixed.

joncgoodwin commented 9 years ago

For me this causes:

bjc[24957]: Method cache corrupted. This may be a message to an invalid object, or a memory error somewhere else. objc[24957]: receiver 0x10e3aad20, SEL 0x7fff8ec2cccc, isa 0x7fff7381bda0, cache 0x7fff7381bdb0, buckets 0x7fff859eecc4, mask 0x19, occupied 0x0, wrap bucket 0x7fff859eecc4 objc[24957]: receiver 0 bytes, buckets 0 bytes objc[24957]: selector 'retain' Fatal error 11: Segmentation faultAbort trap: 6

(I'm using same version as poster above, but via homebrew on Mavericks.) The last issue I posted was about auctex, but the newest version of auctex (on this version of emacs) may also require another fix.

I've made a lot of changes to the starter kit, so I don't want to merge, but the only relevant change here was commenting out a line in init.el?

kjhealy commented 9 years ago

Yes, that's right. The load-paths to the elpa packages and src items should still be preserved.

pauljamesharper commented 9 years ago

That has fixed it for me. Tested with Debian Wheezy on my iMac and Debian Wheezy on my Acer Timeline U laptop. Both with Emacs 24.4.50.1 and Org-Mode 8.2.6-1.

Thanks for that!

joncgoodwin commented 9 years ago

I got it now. I forgot to redo the first change after it didn't work.

I'm going to miss that little error message. . .