GNU bug report logs - #18976
25.0.50; packages with elisp in subdirectories

Previous Next

Package: emacs;

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


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Tom Tromey <tom <at> tromey.com>
Cc: 18976 <at> debbugs.gnu.org
Subject: Re: bug#18976: 25.0.50; packages with elisp in subdirectories
Date: Fri, 07 Nov 2014 14:20:44 -0500
>>> 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 248 days ago.

Previous Next


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