emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Problem with make and autoloads
Date: Thu, 26 May 2011 12:56:56 -0400	[thread overview]
Message-ID: <87boyp7739.fsf@fastmail.fm> (raw)

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.


             reply	other threads:[~2011-05-26 16:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-26 16:56 Matt Lundin [this message]
2011-05-27 17:32 ` Problem with make and autoloads Achim Gratz
2011-06-02  0:46   ` Matt Lundin
2011-06-02 20:49     ` Achim Gratz
2011-05-30  6:40 ` suvayu ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87boyp7739.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).