GNU bug report logs - #14746
24.3.50; update-file-autoloads: Generate absolute paths?

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Sat, 29 Jun 2013 03:24:02 UTC

Severity: wishlist

Found in version 24.3.50

Done: Jambunathan K <kjambunathan <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14746 in the body.
You can then email your comments to 14746 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14746; Package emacs. (Sat, 29 Jun 2013 03:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jambunathan K <kjambunathan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 29 Jun 2013 03:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; update-file-autoloads: Generate absolute paths?
Date: Sat, 29 Jun 2013 08:54:58 +0530
1. C-x C-f ~/src/private/orgmuse.el
2. M-x update-file-autoloads
   
   When prompted for the where to write, say ~/.emacs

3. Now this is what gets dumped in to .emacs.

      ,----
      | 
      | ;;;### (autoloads nil "src/private/orgmuse" "src/private/orgmuse.el"
      | ;;;;;;  (20942 20756 0 0))
      | ;;; Generated autoloads from src/private/orgmuse.el
      | 
      | (autoload 'orgmuse-edit "src/private/orgmuse" "\
      | 
      | 
      | \(fn &optional WIKINAME PAGENAME)" t nil)
      | 
      | (autoload 'orgmuse-post "src/private/orgmuse" "\
      | 
      | 
      | \(fn)" t nil)
      | 
      | ;;;***
      `----

4. Note the absence of "~" prefix.  I believe the file paths generated
   are relative.

5. Now reload emacs.

6. See that orgmuse.el is not getting loaded.  

   NOTE: I don't have a require for orgmuse in .emacs.  This was
   intentional.

Expected behaviour:

One of

1. Eithe M-x update-file-autoloads should generate absolute filepaths.
2. (autoload ...) should be accomodative of relative paths in it's arguments.
   

In GNU Emacs 24.3.50.3 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-06-28 on debian-6.05
Bzr revision: 113214 yamaoka <at> jpl.org-20130628080321-u41m6vp30fd5efyq
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
  value of $LANG: en_IN
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14746; Package emacs. (Sat, 29 Jun 2013 03:44:02 GMT) Full text and rfc822 format available.

Message #8 received at 14746 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 14746 <at> debbugs.gnu.org
Subject: Re: bug#14746: 24.3.50;
 update-file-autoloads: Generate absolute paths?
Date: Fri, 28 Jun 2013 23:43:35 -0400
> 1. Eithe M-x update-file-autoloads should generate absolute filepaths.
> 2. (autoload ...) should be accomodative of relative paths in it's arguments.

The way autoload works is that it looks through load-path, and
autoload.el expects that the file containing those autoloads will be
placed in a directory that appears in load-path.

IOW, you're using it in a way that is very different from the one intended.

We could probably add a config var to make it work the way you expect,
tho we usually prefer relative file names, which makes the file
position-independent to some extent.

E.g. you could have a ~/elisp directory, then you could place all your
Elisp packages somewhere underneath ~/elisp and you can then do

1. C-x C-f ~/elisp/private/orgmuse.el
2. M-x update-file-autoloads
   When prompted for the where to write, say ~/elisp/autoloads

and in Emacs just add (load "~/elisp/autoloads").  And also add

  (add-to-list 'load-path (or (file-name-directory #$) (car load-path)))

at the beginning of ~/elisp/autoloads.


        Stefan




Reply sent to Jambunathan K <kjambunathan <at> gmail.com>:
You have taken responsibility. (Fri, 15 Nov 2013 04:53:02 GMT) Full text and rfc822 format available.

Notification sent to Jambunathan K <kjambunathan <at> gmail.com>:
bug acknowledged by developer. (Fri, 15 Nov 2013 04:53:02 GMT) Full text and rfc822 format available.

Message #13 received at 14746-done <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: 14746-done <at> debbugs.gnu.org
Subject: Re: bug#14746: 24.3.50;
 update-file-autoloads: Generate absolute paths?
Date: Fri, 15 Nov 2013 10:21:55 +0530
OP here.  Closed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 13 Dec 2013 12:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 249 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.