emacs-devel
[Top][All Lists]
Advanced

[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





reply via email to

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