[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loaddefs and provide

From: Stefan Monnier
Subject: Re: loaddefs and provide
Date: Wed, 04 Nov 2009 15:46:46 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>>>> Perhaps there could be an optional argument
>>> (to autoload-rubric, I meant)
>> From where would it be provided?

> In custom-make-dependencies and finder-compile-keywords, if I
> understand the question correctly.

That would be fine, yes.

> -information contained in FILE."
> +information contained in FILE.  If FEATURE is non-nil, FILE
> +will provide a feature based on FILE."
>    (let ((basename (file-name-nondirectory file)))
>      (concat ";;; " basename
>           " --- automatically extracted " (or type "autoloads") "\n"
>           ";;\n"
>           ";;; Code:\n\n"
>           "\n"
> +         (if feature
> +             (concat "(provide '" (file-name-sans-extension basename) ")\n")
> +           "")

Better make FEATURE be the symbol to provide, rather than auto-compute
it based on the file name.  That's more flexible.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]