From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Warning (initialization): Your `load-path' seems to contain Date: Wed, 18 Jun 2014 20:58:19 +0800 Message-ID: <8761jytlw4.fsf@ericabrahamsen.net> References: <87k38fwgi7.fsf@skimble.plus.com> <87wqce7rri.fsf@alcor.rkm.id.au> <871tumhk3v.fsf@ericabrahamsen.net> <87ppi61o2x.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403096128 32437 80.91.229.3 (18 Jun 2014 12:55:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2014 12:55:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 14:55:21 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WxFOa-00026L-N8 for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 14:55:20 +0200 Original-Received: from localhost ([::1]:57103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxFOa-0000ol-CW for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 08:55:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxFOG-0000fU-IC for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 08:55:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxFO9-00031R-VK for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 08:55:00 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxFO9-00031J-P4 for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 08:54:53 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WxFO4-0001Xi-K8 for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 14:54:48 +0200 Original-Received: from 114.248.21.183 ([114.248.21.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jun 2014 14:54:48 +0200 Original-Received: from eric by 114.248.21.183 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jun 2014 14:54:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.21.183 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:z6UTtGqQm4An4qVHQr/Ja40QaqQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98334 Archived-At: Sharon Kimble writes: > Eric Abrahamsen writes: > >> Ruben Maher writes: >> >>> Sharon Kimble 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.