GNU bug report logs -
#18976
25.0.50; packages with elisp in subdirectories
Previous Next
Reported by: Tom Tromey <tom <at> tromey.com>
Date: Thu, 6 Nov 2014 15:16:02 UTC
Severity: wishlist
Merged with 23607,
23636
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>>> I'd like to distribute a package that has elisp in a subdirectory of its
>>> top-level directory.
Stefan> Why?
> I want to have a bunch of sub-features without mangling the names of
> every file. Like (require 'something/sub-feature).
Hmm... clearly we could change package.el to search subdirs. Maybe his
original author could come up with a patch (potentially by changing
update-directory-autoloads, tho such a change should be careful not to
affect existing behavior).
In the mean time, the best I can offer is to use something like
;;;###autoload (load "blabla" 'noerror t)
(eval-when-compile
(let ((generated-autoload-file "blabla"))
(update-directory-autoloads "foo")))
in one of the top-level files. It does have the disadvantage that these
autoloads aren't available during byte-compilation of the files.
Stefan
This bug report was last modified 4 years and 247 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.