[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: define-major-mode
From: |
Miles Bader |
Subject: |
Re: define-major-mode |
Date: |
Sat, 02 Oct 2010 08:30:27 +0900 |
Stefan Monnier <address@hidden> writes:
>> Somebody remind me why there's no define-major-mode macro...?
>> I know the same effect can be achieved with (define-derived-mode foo
>> fundamental-mode ...), but thought that Richard didn't people to do that
>> (I sort of agree that it looks kludgey)...
>
> Nowadays, most modes should derive from another: either special-mode,
> text-mode or prog-mode. And fundamental-mode (aka nil) is a perfectly
> valid parent mode, if none of those fit.
hmm, I didn't know about `prog-mode' and `special-mode' -- when did
those appear? [I'm wondering if they'd be acceptable to external
maintainers supporting older emacs versions/xemacs.]
-Miles
--
Electricity, n. The cause of all natural phenomena not known to be caused by
something else.