From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem with autoloads Date: Mon, 27 Jun 2011 20:13:25 -0400 Message-ID: <18297.1309220005@alphaville.dokosmarshall.org> References: <877h87xloq.wl%markert.michael@googlemail.com> <20110627105743.15d7f5fd@kuru.homelinux.net> <87zkl29ams.wl%markert.michael@googlemail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbLw4-0004eR-HQ for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 20:13:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbLw2-0000a3-VF for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 20:13:48 -0400 Received: from vms173009pub.verizon.net ([206.46.173.9]:37985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbLw2-0000Zw-P9 for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 20:13:46 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LNH007MO4MD6150@vms173009.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 19:13:26 -0500 (CDT) In-reply-to: Message from Michael Markert of "Tue, 28 Jun 2011 00:23:39 +0200." <87zkl29ams.wl%markert.michael@googlemail.com> 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: Michael Markert Cc: Bastien , org-mode mailing list , nicholas.dokos@hp.com Michael Markert wrote: > On 27 Jun 2011, Suvayu Ali wrote: > > Hi Michael, > > > > On Mon, 27 Jun 2011 18:51:01 +0200 > > Michael Markert wrote: > > > >> A fix/workaround is to adjust the loadpath to: > >> > >> (add-to-list 'load-path (expand-file-name "~/build/org-mode")) > >> > >> After quick browsing through the logs I found nothing that could have > >> caused this, but my guess is that someone adjusted the autoloads from > >> "file.el" to "lisp/file.el". > > > > That seems to work for now. But I think this should still be > > addressed. At least if this is how org behaves now, the instructions > > on Worg should reflect that. > > > > Thanks a lot. :) > > I think I tracked it down: The problem is emacs24, that is the > autoload.el that it bundles. > > With emacs23 it doesn't honor the path of the file it's passed, but with > emacs24 it does, resulting in "lisp/file" autoloads. > > I don't see an easy solution, that's not plain dirty.[1] > > Michael > > I consider adding the base directory along with the `lisp' and maybe > `contrib/lisp' directories quite dirty ;) I run emacs24 and I don't have this problem - and I made sure that I was running emacs24 by modifying the makefile appropriately: ,---- | $ make lisp/org-install.el | /usr/local/bin/emacs -batch -q -no-site-file -eval "(setq load-path (cons (expand-file-name \"./lisp/\") (cons \"/usr/local/share/emacs/site-lisp\" load-path)))" -eval "(message (emacs-version))" --eval "(require 'autoload)" \ | --eval '(find-file "org-install.el")' \ | --eval '(erase-buffer)' \ | --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote (lisp/org.el lisp/org-agenda.el lisp/org-ascii.el lisp/org-attach.el lisp/org-archive.el lisp/org-bbdb.el lisp/org-beamer.el lisp/org-bibtex.el lisp/org-capture.el lisp/org-clock.el lisp/org-colview.el lisp/org-colview-xemacs.el lisp/org-compat.el lisp/org-pcomplete.el lisp/org-crypt.el lisp/org-ctags.el lisp/org-datetree.el lisp/org-docview.el lisp/org-entities.el lisp/org-exp.el lisp/org-exp-blocks.el lisp/org-docbook.el lisp/org-faces.el lisp/org-feed.el lisp/org-footnote.el lisp/org-freemind.el lisp/org-gnus.el lisp/org-habit.el lisp/org-html.el lisp/org-icalendar.el lisp/org-id.el lisp/org-indent.el lisp/org-info.el lisp/org-inlinetask.el lisp/org-jsinfo.el lisp/org-irc.el lisp/org-latex.el lisp/org-list.e l lisp/org-mac-message.el lisp/org-macs.el lisp/org-mew.el lisp/org-mhe.el lisp/org-mks.el lisp/org-mobile.el lisp/org-mouse.el lisp/org-publish.el lisp/org-plot.el lisp/org-protocol.el lisp /org-remember.el lisp/org-rmail.el lisp/org-special-blocks.el lisp/org-src.el lisp/org-table.el lisp/org-taskjuggler.el lisp/org-timer.el lisp/org-vm.el lisp/org-w3m.el lisp/org-wl.el lisp/org-xoxo.el lisp/ob.el lisp/ob-table.el lisp/ob-lob.el lisp/ob-ref.el lisp/ob-exp.el lisp/ob-tangle.el lisp/ob-comint.el lisp/ob-eval.el lisp/ob-keys.el lisp/ob-awk.el lisp/ob-C.el lisp/ob-calc.el lisp/ob-ditaa.el lisp/ob-haskell.el lisp/ob-perl.el lisp/ob-sh.el lisp/ob-R.el lisp/ob-dot.el lisp/ob-mscgen.el lisp/ob-latex.el lisp/ob-lisp.el lisp/ob-ledger.el lisp/ob-python.el lisp/ob-sql.el lisp/ob-asymptote.el lisp/ob-emacs-lisp.el lisp/ob-matlab.el lisp/ob-ruby.el lisp/ob-sqlite.el lisp/ob-clojure.el lisp/ob-ocaml.el lisp/ob-sass.el lisp/ob-css.el lisp/ob-gnuplot.el lisp/ob-octave.el lisp/ob-screen.el lisp/ob-plantuml.el lisp/ob-org.el lisp/ob-js.el lisp/ob-scheme.el)))' \ | --eval '(insert "\n(provide (quote org-install))\n")' \ | --eval '(save-buffer)' | GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) | of 2011-04-13 on alphaville.dokosmarshall.org | Loading vc-git... | Generating autoloads for lisp/org.el... | Generating autoloads for lisp/org.el...done | Generating autoloads for lisp/org-agenda.el... | ... `---- The generated org-install.el looks like this: ,---- | | ;;;### (autoloads (org-customize org-reload org-require-autoloaded-modules | ;;;;;; org-submit-bug-report org-cycle-agenda-files org-switchb | ;;;;;; org-map-entries org-open-link-from-string org-open-at-point-global | ;;;;;; org-insert-link-global org-store-link org-run-like-in-org-mode | ;;;;;; turn-on-orgstruct++ turn-on-orgstruct orgstruct-mode org-global-cycle | ;;;;;; org-mode org-babel-do-load-languages) "org" "lisp/org.el" | ;;;;;; (19976 50297)) | ;;; Generated autoloads from lisp/org.el | | (autoload 'org-babel-do-load-languages "org" "\ | Load the languages defined in `org-babel-load-languages'. | | \(fn SYM VALUE)" nil nil) | | (autoload 'org-mode "org" "\ | Outline-based notes management and organizer, alias | \"Carsten's outline-mode for keeping track of everything.\" | ... `---- Nick