unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Autoload and relative file names
@ 2008-09-27 15:02 Lennart Borgman (gmail)
  2008-09-27 16:11 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 2+ messages in thread
From: Lennart Borgman (gmail) @ 2008-09-27 15:02 UTC (permalink / raw)
  To: Emacs Devel

The function that generates autoload, autoload-generate-file-autoloads,
enters just the file name without extension in the generated autoloads.

This means that the file with the autoloaded functions must be in
load-path. This is not always what is desired.

The function `load' (that I assume does the loading later) can use file
names that are relative to any entry in `load-path'. I think it would be
quite useful to be able to generate the autoload section such that it
uses a file name relative to load-path. This could be done by adding a
new parameter, the directory to make the relative file name against.




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

* Re: Autoload and relative file names
  2008-09-27 15:02 Autoload and relative file names Lennart Borgman (gmail)
@ 2008-09-27 16:11 ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 2+ messages in thread
From: Lennart Borgman (gmail) @ 2008-09-27 16:11 UTC (permalink / raw)
  To: Emacs Devel

Lennart Borgman (gmail) wrote:
> The function that generates autoload, autoload-generate-file-autoloads,
> enters just the file name without extension in the generated autoloads.
> 
> This means that the file with the autoloaded functions must be in
> load-path. This is not always what is desired.
> 
> The function `load' (that I assume does the loading later) can use file
> names that are relative to any entry in `load-path'. I think it would be
> quite useful to be able to generate the autoload section such that it
> uses a file name relative to load-path. This could be done by adding a
> new parameter, the directory to make the relative file name against.

... but it is much easier to change autoload-file-load-name which I have
just adviced ...




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

end of thread, other threads:[~2008-09-27 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-27 15:02 Autoload and relative file names Lennart Borgman (gmail)
2008-09-27 16:11 ` Lennart Borgman (gmail)

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).