[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange eval-after-load
From: |
Nick Roberts |
Subject: |
Re: Strange eval-after-load |
Date: |
Tue, 4 Jul 2006 22:00:55 +1200 |
> > As somebody who switches Font Lock off, what would you put in cc-mode.el
> > for GNU Emacs 21 in place of the following form:
> >
> > (eval-after-load "font-lock" '(require 'cc-fonts))
>
> (if (featurep 'font-lock)
> (require 'cc-fonts)
> (add-hook 'font-lock-mode-hook '(lambda nil (require 'cc-fonts))))
font-lock-mode-hook doesn't seem to exist, perhaps because it's only a minor
mode.
The only problem that I've encountered with eval-after-load was one
Klaus Zeitler reported using (eval-after-load "gdb-ui" FORM)
(http://lists.gnu.org/archive/html/emacs-pretest-bug/2006-05/msg00389.html)
It might have been one of timing - unlike a mode-hook you have no control over
when the forms are evaluated - but it gave problems even when the FORM did
nothing significant. That said, I don't think there was a problem before
Alan's recent changes to eval-after-load ;-)
--
Nick http://www.inet.net.nz/~nickrob
- Re: Strange eval-after-load, (continued)
- Re: Hi, I'm back! + Re: Strange eval-after-load, Richard Stallman, 2006/07/02
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/03
- Re: Strange eval-after-load, David Kastrup, 2006/07/03
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/03
- Re: Strange eval-after-load, Richard Stallman, 2006/07/03
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/04
- Re: Strange eval-after-load, David Kastrup, 2006/07/04
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/04
- Re: Strange eval-after-load, David Kastrup, 2006/07/04
- Re: Strange eval-after-load,
Nick Roberts <=
- Re: Strange eval-after-load, Johan Bockgård, 2006/07/04
- Re: Strange eval-after-load, Thien-Thi Nguyen, 2006/07/04
- Re: Strange eval-after-load, Richard Stallman, 2006/07/04
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/04
- Re: Strange eval-after-load, Nick Roberts, 2006/07/04
- Re: Strange eval-after-load, Eli Zaretskii, 2006/07/04
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/05
- Re: Strange eval-after-load, David Kastrup, 2006/07/05
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/06
- Re: Strange eval-after-load, David Kastrup, 2006/07/06