Re: Fundamental mode.

2005-06-18 Thread Lute Kamstra
[EMAIL PROTECTED] (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 auto

Re: Fundamental mode.

2005-06-18 Thread Johan Bockgård
I have some questions. Richard Stallman <[EMAIL PROTECTED]> writes: > Lute Kamstra wrote: >> 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 mode

Re: Fundamental mode.

2005-06-16 Thread Lute Kamstra
Richard Stallman <[EMAIL PROTECTED]> writes: > Modes derived from fundamental mode run after-change-major-mode-hook > twice because fundamental mode runs it unconditionally. Fundamental > mode should only run after-change-major-mode-hook if delay-mode-hooks > is nil. We can eithe

Re: Fundamental mode.

2005-06-15 Thread Richard Stallman
Modes derived from fundamental mode run after-change-major-mode-hook twice because fundamental mode runs it unconditionally. Fundamental mode should only run after-change-major-mode-hook if delay-mode-hooks is nil. We can either test this directly or use (run-mode-hooks 'funda

Re: Fundamental mode.

2005-06-15 Thread Juanma Barranquero
> The latter also introduces > fundamental-mode-hook, of course. I see no problem with that, but I'm > a bit surprised it hasn't been done already. (So I suspect there is > some reason for not running fundamental-mode-hook.) Probably no one needed fundamental-mode-hook before. (run-mode-hooks 'f