From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: 14746@debbugs.gnu.org
Subject: bug#14746: 24.3.50; update-file-autoloads: Generate absolute paths?
Date: Fri, 28 Jun 2013 23:43:35 -0400 [thread overview]
Message-ID: <jwv4nch1th6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ehbl61kl.fsf@gmail.com> (Jambunathan K.'s message of "Sat, 29 Jun 2013 08:54:58 +0530")
> 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
next prev parent reply other threads:[~2013-06-29 3:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-29 3:24 bug#14746: 24.3.50; update-file-autoloads: Generate absolute paths? Jambunathan K
2013-06-29 3:43 ` Stefan Monnier [this message]
2013-11-15 4:51 ` Jambunathan K
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv4nch1th6.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=14746@debbugs.gnu.org \
--cc=kjambunathan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.savannah.gnu.org/cgit/emacs.git
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).