emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Problem with autoloads


From: Nick Dokos
Subject: Re: [O] Problem with autoloads
Date: Mon, 27 Jun 2011 20:13:25 -0400

Michael Markert <address@hidden> wrote:

> On 27 Jun 2011, Suvayu Ali wrote:
> > Hi Michael,
> >
> > On Mon, 27 Jun 2011 18:51:01 +0200
> > Michael Markert <address@hidden> 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.el 
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]