emacs-devel
[Top][All Lists]
Advanced

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

Re: Should autoloaded functions show LIB.el for its location?


From: Stefan Monnier
Subject: Re: Should autoloaded functions show LIB.el for its location?
Date: Sun, 18 Dec 2005 13:04:22 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> +                  (unless (file-name-extension file-name)
> +                    (let ((ext (file-name-extension
> +                                (locate-library file-name))))
> +                      (when (equal ext "elc") (setq ext "el"))
> +                      (setq file-name (concat file-name "." ext))))

I suspect that if file-name equals "foo.el", you'll get "foo.el.el" with the
above code.  Since you want consistency, why not apply to the result of
(locate-library file-name) the same code as the one used to turn the
filename extracted from load-history into "foo.el"?


        Stefan




reply via email to

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