From: Juanma Barranquero <lektu@terra.es>
Subject: Re: eval-after-load as a macro (and eval-next-after-load)
Date: Sun, 13 Apr 2003 20:55:31 +0200 [thread overview]
Message-ID: <20030413204739.F314.LEKTU@terra.es> (raw)
In-Reply-To: <E192it5-0000rQ-00@fencepost.gnu.org>
On Mon, 07 Apr 2003 22:31:03 -0400, Richard Stallman <rms@gnu.org> 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
next prev parent reply other threads:[~2003-04-13 18:55 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-04 20:30 eval-after-load as a macro (and eval-next-after-load) Stefan Monnier
2003-04-05 8:13 ` Richard Stallman
2003-04-06 21:05 ` Stefan Monnier
2003-04-07 9:25 ` Kai Großjohann
2003-04-07 9:33 ` Miles Bader
2003-04-07 12:50 ` Luc Teirlinck
2003-04-07 13:36 ` Kai Großjohann
2003-04-07 19:05 ` Luc Teirlinck
2003-04-07 19:43 ` Kai Großjohann
2003-04-07 20:04 ` Luc Teirlinck
2003-04-07 20:19 ` Kai Großjohann
2003-04-07 19:35 ` Luc Teirlinck
2003-04-08 2:31 ` Richard Stallman
2003-04-08 10:46 ` Kim F. Storm
2003-04-08 10:21 ` Kai Großjohann
2003-04-08 18:17 ` Stefan Monnier
2003-04-09 23:41 ` Kim F. Storm
2003-04-09 1:59 ` Richard Stallman
2003-04-09 2:31 ` Miles Bader
2003-04-10 0:00 ` Kim F. Storm
2003-04-10 22:47 ` Richard Stallman
2003-04-07 17:04 ` Juanma Barranquero
2003-04-07 17:56 ` Stefan Monnier
2003-04-07 19:50 ` Juanma Barranquero
2003-04-08 2:31 ` Richard Stallman
2003-04-13 18:55 ` Juanma Barranquero [this message]
2003-04-14 7:10 ` Juanma Barranquero
2003-04-05 15:57 ` Kai Großjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030413204739.F314.LEKTU@terra.es \
--to=lektu@terra.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).