From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Problem with make and autoloads Date: Thu, 26 May 2011 12:56:56 -0400 Message-ID: <87boyp7739.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPdrq-0003qf-C8 for emacs-orgmode@gnu.org; Thu, 26 May 2011 12:57:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPdro-0005uz-Nu for emacs-orgmode@gnu.org; Thu, 26 May 2011 12:57:02 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:37983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPdro-0005uu-Gz for emacs-orgmode@gnu.org; Thu, 26 May 2011 12:57:00 -0400 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 195422054F for ; Thu, 26 May 2011 12:57:00 -0400 (EDT) Received: from archeee (c-98-230-249-139.hsd1.sc.comcast.net [98.230.249.139]) by mail.messagingengine.com (Postfix) with ESMTPSA id BB0A340007E for ; Thu, 26 May 2011 12:56:59 -0400 (EDT) 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: 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") execute-extended-command(nil) call-interactively(execute-extended-command nil nil) The autoloads in org-install all have "lisp/" prepended to the file name. 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 involved. Note: I am using a recent version of bzr emacs, but the problem also occurred when compiling org-mode with emacs 23.2. Thanks, Matt