emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem with make and autoloads
@ 2011-05-26 16:56 Matt Lundin
  2011-05-27 17:32 ` Achim Gratz
  2011-05-30  6:40 ` suvayu ali
  0 siblings, 2 replies; 5+ messages in thread
From: Matt Lundin @ 2011-05-26 16:56 UTC (permalink / raw)
  To: Org Mode

Hello list,

Recently, autoloads ceased to work in my local org-mode installation. 

My typical update routine is to:

1. Pull the most recent changes into my local org-mode repository,
   located at "~/org-mode".
2. Run "make clean && make".

My .emacs file contains the following lines:

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/org-mode/lisp")
(require 'org-install)
--8<---------------cut here---------------end--------------->8---

Note: I have replicated the problem using an .emacs file containing
*only* those lines.

When I call an autoloaded function, such as org-capture, I receive the
following error:

Debugger entered--Lisp error: (file-error "Cannot open load file" "lisp/org-capture")
  call-interactively(execute-extended-command nil nil)

The autoloads in org-install all have "lisp/" prepended to the file

Here is an example:

--8<---------------cut here---------------start------------->8---
(autoload 'org-capture "lisp/org-capture" "\
--8<---------------cut here---------------end--------------->8---

This causes problems since there is no "~/org-mode/lisp/lisp/org-capture.el".

In the past, the autoloads in org-install.el looked like this:

--8<---------------cut here---------------start------------->8---
(autoload 'org-capture "org-capture" "\
--8<---------------cut here---------------end--------------->8---

Adding "~/org-mode" to the load path allows emacs to find the files
correctly, but this is a temporary workaround. (The manual instructs one
to add the lisp directory to the org path---not the top level of the
distribution directory.)

Any insights into why the autoloads are being generated this way? Is
anyone else experiencing the same issue? I have downloaded a new version
of the distribution to ensure that no local changes to the Makefile are

Note: I am using a recent version of bzr emacs, but the problem also
occurred when compiling org-mode with emacs 23.2.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-06-02 20:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26 16:56 Problem with make and autoloads Matt Lundin
2011-05-27 17:32 ` Achim Gratz
2011-06-02  0:46   ` Matt Lundin
2011-06-02 20:49     ` Achim Gratz
2011-05-30  6:40 ` suvayu ali

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).