all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Should autoloaded functions show LIB.el for its location?
Date: Sun, 18 Dec 2005 13:04:22 -0500	[thread overview]
Message-ID: <87u0d6l1vb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <43A59B15.7000103@student.lu.se> (Lennart Borgman's message of "Sun, 18 Dec 2005 18:23:33 +0100")

> +                  (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	other threads:[~2005-12-18 18:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-17 13:27 Should autoloaded functions show LIB.el for its location? Lennart Borgman
2005-12-17 13:28 ` Lennart Borgman
2005-12-18  0:00   ` Richard M. Stallman
2005-12-18  9:47     ` Lennart Borgman
2005-12-18 14:31       ` Stefan Monnier
2005-12-18 17:23         ` Lennart Borgman
2005-12-18 18:04           ` Stefan Monnier [this message]
2005-12-19  4:38         ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87u0d6l1vb.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.