From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Markert Subject: Re: Problem with autoloads Date: Mon, 27 Jun 2011 20:43:33 +0200 Message-ID: <8739iv9ktm.wl%markert.michael@googlemail.com> References: <877h87xloq.wl%markert.michael@googlemail.com> <8762nrxi3p.wl%markert.michael@googlemail.com> <20110627112301.426e6d12@kuru.homelinux.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Mon_Jun_27_20:43:33_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbGma-0007ey-50 for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:43:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbGmY-0006j2-8y for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:43:39 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:56098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbGmX-0006iv-SX for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:43:38 -0400 Received: by fxd18 with SMTP id 18so1883772fxd.39 for ; Mon, 27 Jun 2011 11:43:36 -0700 (PDT) In-Reply-To: <20110627112301.426e6d12@kuru.homelinux.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali Cc: org-mode mailing list --pgp-sign-Multipart_Mon_Jun_27_20:43:33_2011-1 Content-Type: text/plain; charset=US-ASCII On 27 Jun 2011, Suvayu Ali wrote: > On Mon, 27 Jun 2011 20:08:26 +0200 > Michael Markert wrote: > >>> A fix/workaround is to adjust the loadpath to: >>> >>> (add-to-list 'load-path (expand-file-name "~/build/org-mode")) >> >> Scratch that. You need that line _additionally_ to the your other >> two. > > I noticed something strange; if you do (load-library "org-capture") > for example (with the load path set to ~/build/orgmode/lisp), the > libraries get loaded without any errors and then on everything works > as usual. This seems like a strange behaviour to me. No, it's perfectly fine. With the autoloads you search for `lisp/file.el' so the directory that includes the lisp directory has to be in the load-path. If you search only for the `file.el' the `lisp' directory itself has to be in the load-path. This is exactly the problem if you change your load-path according to my first mail: If you (or a file -- in my case it was org-contacts.el) load the file directly, you'll fail. With org-mode this is especially hairy, because the bundled org-mode is by default still in the load-path, so you'll load the old ones -- in the best case this results in cryptic and incomprehensible error messages on load. Michael --pgp-sign-Multipart_Mon_Jun_27_20:43:33_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJOCM9VAAoJEHHMVUK0UjKVTUoQAK23VjO7IHloItLTgVj90u8J gehNWtN5JU6jAMhN/M7Os0jovOQW4zAU1Bzxdz0LnIV4IuCoSmp6XnbLYYP9zeZR KNe9zrsyr4vD2EtpzXx3k3bn/Dhc/tN3ojin2WAvSKcebGjojddGgwYEW4ohPgAc qaNZIg5tDBGfbBayLg4U6j1yB09RSmC1sInzWTYFHontGibp7bC2RfKEUoB0YuUS jABJpmase7dloIX2/barlODQoKwF8SixGHtITXlzvoy2LiAkvzXj0N7AlIIm9oM+ hsR5LVISbo3BpTvD+DvVDC9Oph0rtCao4LHFGXkPPa++yNIPxh+qcAz8SXyimihP J0lnwdEbpGfB4BIo1ausbdKn2Y2VjXec6NFygFJ5a8xP1F1BaYPH7EB+AmK8BZIX +1a6N0CVtwNXK2x6o0W0TrbdKTQydqIUoNFS5SOdtd6lJya9tAIvSqTuUyz84ukU /6bRT73Mioh+2rY2mShFUQRubIEcML+OhydotZXnmtIm9NEiVCR155ou9ozAr5s8 x07GFxE8RLzvxdrKX6aBFSJdHQXoH1LtWp5nt9ZzxNLvSYy5i6ALzryJ19wed41k TX9bUdusCU8kOFGDDvaszcq2lJm2t6y/2KhOm/G1/ydel1Yd8PvNhWIX/5GOAApJ wQKc0Mdi5awZjKwTmYhn =PdEN -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Jun_27_20:43:33_2011-1--