[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fundamental-mode-hook

From: Lennart Borgman (gmail)
Subject: Re: fundamental-mode-hook
Date: Fri, 09 Feb 2007 00:03:23 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20061207 Thunderbird/ Mnenhy/

Stefan Monnier wrote:
Yes, thanks, that is what I thought.  What is the right way to find out if
a function is a major mode?

- look at its doc
- look at its code
- try it
- ...

Some of it could be done from elisp of course, but it seems complicated ... ;-)

I tried to get all major modes to use a standard macro
(define-derived-mode), but Richard didn't like some parts of it and it
all dies.  Still, all major modes defined with define-derived-mode have the
`derived-mode-parent' property.

Seems easier. Combining that with the code that checks if it is a minor mode ...

But something even easier would be nice.

reply via email to

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