[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fundamental mode.
From: |
Lute Kamstra |
Subject: |
Re: Fundamental mode. |
Date: |
Sun, 19 Jun 2005 02:49:33 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden (Johan Bockgård) writes:
>>> Modes derived from fundamental mode run after-change-major-mode-hook
>>> twice because fundamental mode runs it unconditionally.
>
> I don't understand this. As define-derived-mode is currently defined modes
> derived from fundamental-mode do not automatically call the fundamental-mode
> function.
>
> [define-derived-mode]
>
> (when (eq parent 'fundamental-mode) (setq parent nil))
> [...]
> (,(or parent 'kill-all-local-variables))
True. But it's possible to define a derived mode manually, without
using the define-derived-mode macro.
Lute.