[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval-after-load changes
From: |
Reiner Steib |
Subject: |
Re: eval-after-load changes |
Date: |
Fri, 26 May 2006 18:20:54 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On Thu, May 25 2006, Romain Francoise wrote:
> There's a bug in the changes you installed yesterday: `eval-after-load'
> forms get evaluated immediately if the last word of the name of the file
> they're contained in matches the FILE arg of the e-a-l form.
>
> To reproduce this bug, create a file named `this-is-not-ibuffer.el' that
> contains the following:
>
> (eval-after-load "ibuffer"
> '(progn
> (add-to-list 'ibuffer-maybe-show-predicates "\\.newsrc")))
>
> Then start Emacs with emacs -q and try to load the file. Emacs signals
> the following error:
>
> | progn: Symbol's value as variable is void: ibuffer-maybe-show-predicates
I see the same problem using the following file `rs-tex.el':
--8<---------------cut here---------------start------------->8---
(eval-after-load "tex"
'(progn
(message "featurep tex? -> %s" (featurep 'tex))
(message "featurep rs-tex? -> %s" (featurep 'rs-tex))
(add-to-list
'TeX-command-list (list "Make" "make dvi" 'TeX-run-compile t t) t)))
(provide 'rs-tex)
--8<---------------cut here---------------end--------------->8---
After loading this file, the form is immediately evaled, but `tex' and
the variable `TeX-command-list' isn't available yet:
,----[ *Messages* ]
| featurep tex? -> nil
| featurep rs-tex? -> t
| progn: Symbol's value as variable is void: TeX-command-list
`----
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/