[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval-after-load as a macro (and eval-next-after-load)
From: |
Juanma Barranquero |
Subject: |
Re: eval-after-load as a macro (and eval-next-after-load) |
Date: |
Sun, 13 Apr 2003 20:55:31 +0200 |
On Mon, 07 Apr 2003 22:31:03 -0400, Richard Stallman <address@hidden> wrote:
> Does this patch solve that problem?
> ! (run-mode-hooks ',hook)))))
> ! (if (fboundp 'run-mode-hooks)
> ! (run-mode-hooks ',hook)
> ! (run-hooks ',hook))))))
With this patch, 21.3 does not fail when loading a HEAD-compiled mode
defined with `define-derived-mode'.
Still, it does not "work", so to speak.
As a simple example:
# .emacs contains:
(load "font-lock")
(global-font-lock-mode 1)
(autoload 'test-mode "test-mode")
# test-mode.el contains:
(define-derived-mode test-mode emacs-lisp-mode "Test Mode"
"Test mode derived from emacs-lisp-mode.")
# test.el contains:
# -*- mode: test-mode -*-
Case 1:
- compile test-mode.el with 21.3
- start 21.3
- load test.el
The comment in test.el is font-locked.
Case 2:
- compile test-mode.el with HEAD
- start 21.3
- load test.el
The comment in test.el is not font-locked.
/L/e/k/t/u
- Re: eval-after-load as a macro (and eval-next-after-load), (continued)
- Re: eval-after-load as a macro (and eval-next-after-load), Richard Stallman, 2003/04/08
- Re: eval-after-load as a macro (and eval-next-after-load), Miles Bader, 2003/04/08
- Re: eval-after-load as a macro (and eval-next-after-load), Kim F. Storm, 2003/04/09
- Re: eval-after-load as a macro (and eval-next-after-load), Richard Stallman, 2003/04/10
- Re: eval-after-load as a macro (and eval-next-after-load), Juanma Barranquero, 2003/04/07
- Re: eval-after-load as a macro (and eval-next-after-load), Stefan Monnier, 2003/04/07
- Re: eval-after-load as a macro (and eval-next-after-load), Juanma Barranquero, 2003/04/07
- Re: eval-after-load as a macro (and eval-next-after-load), Richard Stallman, 2003/04/07
- Re: eval-after-load as a macro (and eval-next-after-load),
Juanma Barranquero <=
- Re: eval-after-load as a macro (and eval-next-after-load), Juanma Barranquero, 2003/04/14
Re: eval-after-load as a macro (and eval-next-after-load), Kai Großjohann, 2003/04/05