[Top][All Lists]

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

eval-after-load bug

From: Katsumi Yamaoka
Subject: eval-after-load bug
Date: Fri, 26 May 2006 08:19:53 +0900
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)


I have a trouble that seems to be caused by this change:

2006-05-24  Alan Mackenzie  <address@hidden>
        * subr.el (eval-after-load): Fix the doc-string.  Allow FILE to
        match ANY loaded file with the right name, not just those in
        load-path.  Put a regexp matching the file name into
        after-load-alist, rather than the name itself.

I have the following after-load form:

(eval-after-load "w3m" FORM)

And now it is incorporated into `after-load-alist' as:

("\\<w3m\\(\\.elc\\|\\.el\\)?\\(\\.gz\\)?\\'" FORM)

While the FORM should be evaluated after the w3m.elc module is
loaded, it is done after the mime-w3m.elc module is loaded.
Since the FORM requires some variables and functions that
w3m.elc provides but it has not been loaded yet at that time,
the FORM simply stops by an error.  Any idea?


reply via email to

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