From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: Warning (initialization): Your `load-path' seems to contain Date: Wed, 18 Jun 2014 11:58:30 +0100 Message-ID: <87ppi61o2x.fsf@skimble.plus.com> References: <87k38fwgi7.fsf@skimble.plus.com> <87wqce7rri.fsf@alcor.rkm.id.au> <871tumhk3v.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1403089151 10242 80.91.229.3 (18 Jun 2014 10:59:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2014 10:59:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 12:59:06 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 1WxDa4-0001Um-TW for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 12:59:05 +0200 Original-Received: from localhost ([::1]:56449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxDa4-0002PZ-Iy for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 06:59:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxDZj-0002Hi-HM for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 06:58:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxDZf-0007s2-0t for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 06:58:43 -0400 Original-Received: from avasout01.plus.net ([84.93.230.227]:36730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxDZe-0007pu-Pu for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 06:58:38 -0400 Original-Received: from london ([87.113.62.235]) by avasout01 with smtp id Fmyc1o00354Xw6n01mydq5; Wed, 18 Jun 2014 11:58:37 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=E5NDpMtl c=1 sm=1 tr=0 a=ghyiixEhfiOnuEZknAzLeA==:117 a=ghyiixEhfiOnuEZknAzLeA==:17 a=0Bzu9jTXAAAA:8 a=dOUBY0j0ER4A:10 a=ao5cCLVmijgA:10 a=ihvODaAuJD4A:10 a=EBOSESyhAAAA:8 a=qbX9SruPAAAA:8 a=pGLkceISAAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=r_h_T9AltgfKa0tr7uIA:9 a=9BiDWoHaHTzMRj-w:21 a=1eKtCmroUnqRxvH8:21 a=fP9FczDTp1sA:10 a=MSl-tDqOz04A:10 a=rGSS6dZDHIDDaWPCrn8A:9 X-AUTH: skimble:2500 In-Reply-To: <871tumhk3v.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 18 Jun 2014 13:17:40 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.227 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:98328 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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/l= isp >>> 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. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.91.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJToXDWAAoJEDaBgBkK+INbzggP/i09deeYLDnOYjjQiYFSfoMh EdNql6QXSPgVfBl1I5fc8vH+Ty+ftzEcVGj0Q7r8O5rHKplQMrZSr0akny6HIxTa edUVSV2xpJd4+77bU8rqYgsnU0JD5gGILMyrFhqthqh9sE7Qt1HcPJTY3C29Y29h bp3eLswpuPmoHY/SJgXaMmWOoyHxjkeyG0NnK4Fzevs/f2EG1bLEQCVb74XNddeS jZgN9eu1nQ1QPLJW8qd/Dyd3B/KkpR0a4/Gtfq9mZPmhhGdrXZLJLcHrTwDomd9m iiNwqswaMkdevEyAt98/aV4McgwIn4DH6sFc/p+HdrTuG7XgvOiGwA618Q/stAeI q56ezY+50xCgYTUDdhUnWEvllL0fsgWReGNwZnmaCRuwXOaX2P3jSmx6WA4zstUd bHSy4CzhD/SOTHhfoPTtjAr387jgL2pxF3ntWKI7wckR68QrZFBFDI1ix9Z0WBtC 4HioA9W84aJrQMs7mvzncifSYR+wU0P3AhbOKFaKtRC+xbkequX2kpRZh+5v8EdD 3OwPHd2ckalsvJ+4PSzyJNSskYdk65c9BO3jdfyVsgUkozef3kBZcPeFf9z+LK8E qPh2SkfDrNeiq+VS4MrrRK4+4UW0goA0dXhgzo2n4UMX9dTCHwiSKwQQKg0s5V5S rFyfkSoLelIRVP2vm0dc =bIt7 -----END PGP SIGNATURE----- --=-=-=--