From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org, Noah Friedman <friedman@splode.com>
Subject: Re: do-after-load-evaluation
Date: Fri, 23 Jun 2006 10:12:03 +0200 [thread overview]
Message-ID: <85lkroi94c.fsf@lola.goethe.zz> (raw)
In-Reply-To: <87sllwxpit.fsf@pacem.orebokech.com> (Romain Francoise's message of "Fri, 23 Jun 2006 10:08:42 +0200")
Romain Francoise <romain@orebokech.com> writes:
> Noah Friedman <friedman@splode.com> writes:
>
>> The following change:
>
>> 2006-05-24 Alan Mackenzie <acm@muc.de>
>
>> * lread.c (Vafter_load_alist): doc-string: state that an element
>> now has a regexp to match file names, not a file name as such.
>>
>> breaks backward compatibility because now the after-load forms for "foo"
>> will be evaluated when "foobar" is loaded.
>
> You should use `eval-after-load' instead of adding to `after-load-alist'
> directly; it builds the following regexp for "foo":
>
> "\\(\\`\\|/\\)foo\\(\\.elc\\|\\.el\\)?\\(\\.gz\\)?\\'"
Any reason this is not
"\\(\\`\\|/\\)foo\\(\\.elc?\\)?\\(\\.gz\\)?\\'"
instead (should perform better)? And is there a reason that .elc? is
optional?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2006-06-23 8:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-23 3:22 do-after-load-evaluation Noah Friedman
2006-06-23 8:08 ` do-after-load-evaluation Romain Francoise
2006-06-23 8:12 ` David Kastrup [this message]
2006-06-23 12:12 ` do-after-load-evaluation Romain Francoise
2006-06-23 12:14 ` do-after-load-evaluation David Kastrup
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=85lkroi94c.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=friedman@splode.com \
/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.