* Warning (initialization): Your `load-path' seems to contain
@ 2014-06-17 18:14 Sharon Kimble
2014-06-18 4:42 ` Ruben Maher
0 siblings, 1 reply; 5+ messages in thread
From: Sharon Kimble @ 2014-06-17 18:14 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]
For some time now I've been getting this -
--8<---------------cut here---------------start------------->8---
Warning (initialization): Your `load-path' seems to contain
your `.emacs.d' directory: /home/boudiccas/.emacs.d/
This is likely to cause problems...
Consider using a subdirectory instead, e.g.: /home/boudiccas/.emacs.d/lisp
--8<---------------cut here---------------end--------------->8---
in my *Warnings* buffer.
These are the relevant lines from my "init.el"
--8<---------------cut here---------------start------------->8---
(setq load-path (cons "/home/boudiccas/.emacs.d/lisp" load-path))
(add-to-list 'load-path "/home/boudiccas/.emacs.d/personal-lisp")
--8<---------------cut here---------------end--------------->8---
Why doesn't it accept what's in the "init.el" please, and what can I
do to put it right?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.91.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Warning (initialization): Your `load-path' seems to contain
2014-06-17 18:14 Warning (initialization): Your `load-path' seems to contain Sharon Kimble
@ 2014-06-18 4:42 ` Ruben Maher
2014-06-18 5:17 ` Eric Abrahamsen
0 siblings, 1 reply; 5+ messages in thread
From: Ruben Maher @ 2014-06-18 4:42 UTC (permalink / raw)
To: help-gnu-emacs
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> For some time now I've been getting this -
> Warning (initialization): Your `load-path' seems to contain
> your `.emacs.d' directory: /home/boudiccas/.emacs.d/
> This is likely to cause problems...
> Consider using a subdirectory instead, e.g.: /home/boudiccas/.emacs.d/lisp
> in my *Warnings* buffer.
>
> These are the relevant lines from my "init.el"
> (setq load-path (cons "/home/boudiccas/.emacs.d/lisp" load-path))
> (add-to-list 'load-path "/home/boudiccas/.emacs.d/personal-lisp")
>
> Why doesn't it accept what's in the "init.el" please, and what can I
> do to put it right?
Hi Sharon,
Emacs is not rejecting init.el, it's just warning you. If you don't
want to see the warning anymore you can drop this snippet in there:
(eval-after-load "warnings"
;; shut up, emacs!
'(setq display-warning-minimum-level :error))
Kind regards,
Ruben
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Warning (initialization): Your `load-path' seems to contain
2014-06-18 4:42 ` Ruben Maher
@ 2014-06-18 5:17 ` Eric Abrahamsen
2014-06-18 10:58 ` Sharon Kimble
0 siblings, 1 reply; 5+ messages in thread
From: Eric Abrahamsen @ 2014-06-18 5:17 UTC (permalink / raw)
To: help-gnu-emacs
Ruben Maher <eqyiel@gmail.com> writes:
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> For some time now I've been getting this -
>> Warning (initialization): Your `load-path' seems to contain
>> your `.emacs.d' directory: /home/boudiccas/.emacs.d/
>> This is likely to cause problems...
>> Consider using a subdirectory instead, e.g.: /home/boudiccas/.emacs.d/lisp
>> in my *Warnings* buffer.
>>
>> These are the relevant lines from my "init.el"
>> (setq load-path (cons "/home/boudiccas/.emacs.d/lisp" load-path))
>> (add-to-list 'load-path "/home/boudiccas/.emacs.d/personal-lisp")
>>
>> Why doesn't it accept what's in the "init.el" please, and what can I
>> do to put it right?
>
> Hi Sharon,
>
> Emacs is not rejecting init.el, it's just warning you. If you don't
> want to see the warning anymore you can drop this snippet in there:
>
> (eval-after-load "warnings"
> ;; shut up, emacs!
> '(setq display-warning-minimum-level :error))
>
> Kind regards,
>
> Ruben
But the root cause still ought to be that, somewhere in your init,
you've got (add-to-list 'load-path "/home/boudiccas/.emacs.d"). Are you
sure you don't? I've been following emacs trunk, and a while ago got the
same warning.
I fixed it by removing ~/.emacs.d from my load path, putting
(add-to-list 'load-path "~/.emacs.d/lisp") in my ~/.emacs.d/init.el
file, and then putting everything I wanted to require or load underneath
~/.emacs.d/lisp. No warnings anymore...
E
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Warning (initialization): Your `load-path' seems to contain
2014-06-18 5:17 ` Eric Abrahamsen
@ 2014-06-18 10:58 ` Sharon Kimble
2014-06-18 12:58 ` Eric Abrahamsen
0 siblings, 1 reply; 5+ messages in thread
From: Sharon Kimble @ 2014-06-18 10:58 UTC (permalink / raw)
To: Eric Abrahamsen; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 2420 bytes --]
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Ruben Maher <eqyiel@gmail.com> writes:
>
>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>
>>> For some time now I've been getting this -
>>> Warning (initialization): Your `load-path' seems to contain
>>> your `.emacs.d' directory: /home/boudiccas/.emacs.d/
>>> This is likely to cause problems...
>>> Consider using a subdirectory instead, e.g.: /home/boudiccas/.emacs.d/lisp
>>> in my *Warnings* buffer.
>>>
>>> These are the relevant lines from my "init.el"
>>> (setq load-path (cons "/home/boudiccas/.emacs.d/lisp" load-path))
>>> (add-to-list 'load-path "/home/boudiccas/.emacs.d/personal-lisp")
>>>
>>> Why doesn't it accept what's in the "init.el" please, and what can I
>>> do to put it right?
>>
>> Hi Sharon,
>>
>> Emacs is not rejecting init.el, it's just warning you. If you don't
>> want to see the warning anymore you can drop this snippet in there:
>>
>> (eval-after-load "warnings"
>> ;; shut up, emacs!
>> '(setq display-warning-minimum-level :error))
>>
>> Kind regards,
>>
>> Ruben
>
> But the root cause still ought to be that, somewhere in your init,
> you've got (add-to-list 'load-path "/home/boudiccas/.emacs.d"). Are you
> sure you don't? I've been following emacs trunk, and a while ago got the
> same warning.
>
> I fixed it by removing ~/.emacs.d from my load path, putting
> (add-to-list 'load-path "~/.emacs.d/lisp") in my ~/.emacs.d/init.el
> file, and then putting everything I wanted to require or load underneath
> ~/.emacs.d/lisp. No warnings anymore...
>
Thanks for this Eric, this is what I ended up doing, although I was
very wary of destroying my hard-won set-up, and I did restore my
"init.el" from backup as it was so cobbled about that I couldn't see
what was loading and what wasn't! And I did have 2 instances of
(add-to-list 'load-path "~/.emacs.d") which were soon commented out!
That problem of "Warning (initialization)" has been bugging me for
months and I kept putting off dealing with it but it got embarrassing
when the task had been repeated for 84 days, and still not dealt
with! :)
But now its all pristine clean and working well, thanks folks :)
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.91.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Warning (initialization): Your `load-path' seems to contain
2014-06-18 10:58 ` Sharon Kimble
@ 2014-06-18 12:58 ` Eric Abrahamsen
0 siblings, 0 replies; 5+ messages in thread
From: Eric Abrahamsen @ 2014-06-18 12:58 UTC (permalink / raw)
To: help-gnu-emacs
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Ruben Maher <eqyiel@gmail.com> writes:
>>
>>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>>
>>>> For some time now I've been getting this -
>>>> Warning (initialization): Your `load-path' seems to contain
>>>> your `.emacs.d' directory: /home/boudiccas/.emacs.d/
>>>> This is likely to cause problems...
>>>> Consider using a subdirectory instead, e.g.: /home/boudiccas/.emacs.d/lisp
>>>> in my *Warnings* buffer.
>>>>
>>>> These are the relevant lines from my "init.el"
>>>> (setq load-path (cons "/home/boudiccas/.emacs.d/lisp" load-path))
>>>> (add-to-list 'load-path "/home/boudiccas/.emacs.d/personal-lisp")
>>>>
>>>> Why doesn't it accept what's in the "init.el" please, and what can I
>>>> do to put it right?
>>>
>>> Hi Sharon,
>>>
>>> Emacs is not rejecting init.el, it's just warning you. If you don't
>>> want to see the warning anymore you can drop this snippet in there:
>>>
>>> (eval-after-load "warnings"
>>> ;; shut up, emacs!
>>> '(setq display-warning-minimum-level :error))
>>>
>>> Kind regards,
>>>
>>> Ruben
>>
>> But the root cause still ought to be that, somewhere in your init,
>> you've got (add-to-list 'load-path "/home/boudiccas/.emacs.d"). Are you
>> sure you don't? I've been following emacs trunk, and a while ago got the
>> same warning.
>>
>> I fixed it by removing ~/.emacs.d from my load path, putting
>> (add-to-list 'load-path "~/.emacs.d/lisp") in my ~/.emacs.d/init.el
>> file, and then putting everything I wanted to require or load underneath
>> ~/.emacs.d/lisp. No warnings anymore...
>>
> Thanks for this Eric, this is what I ended up doing, although I was
> very wary of destroying my hard-won set-up, and I did restore my
> "init.el" from backup as it was so cobbled about that I couldn't see
> what was loading and what wasn't! And I did have 2 instances of
> (add-to-list 'load-path "~/.emacs.d") which were soon commented out!
> That problem of "Warning (initialization)" has been bugging me for
> months and I kept putting off dealing with it but it got embarrassing
> when the task had been repeated for 84 days, and still not dealt
> with! :)
I like that about Org: it embarrasses you, but gently :)
I was also very wary of messing with my init-file setup, but I was
pleased with how easy it turned out to be. And the resulting arrangement
has the advantage of being easier to manage when you need to comment
things out, or track down the exact source of an error. Glad to hear
it's all working well!
> But now its all pristine clean and working well, thanks folks :)
>
> Sharon.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-18 12:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17 18:14 Warning (initialization): Your `load-path' seems to contain Sharon Kimble
2014-06-18 4:42 ` Ruben Maher
2014-06-18 5:17 ` Eric Abrahamsen
2014-06-18 10:58 ` Sharon Kimble
2014-06-18 12:58 ` Eric Abrahamsen
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).