[Top][All Lists]

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

Re: do-after-load-evaluation

From: David Kastrup
Subject: Re: do-after-load-evaluation
Date: Fri, 23 Jun 2006 10:12:03 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Romain Francoise <address@hidden> writes:

> Noah Friedman <address@hidden> writes:
>> The following change:
>>     2006-05-24  Alan Mackenzie  <address@hidden>
>>             * 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
instead (should perform better)?  And is there a reason that .elc? is

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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