help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: List of major modes?


From: Kevin Rodgers
Subject: Re: List of major modes?
Date: Tue, 15 Nov 2005 11:21:26 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Alan Mackenzie wrote:
> On Mon, 14 Nov 2005, Kevin Rodgers wrote:
> > I still think it would be better to include functions that follow the
> > major mode conventions than to exclude functions that don't follow the
> > minor mode conventions. The Emacs Lisp manual has nodes describing both
> > sets of conventions.
>
> It is impossible to create a list of major modes, because a major mode is
> simply a lisp function, with nothing definitive to distinguish it from
> any other lisp function.

Yes.  We have been discussing heuristics that could be used in the
absence of a definitive test.

> So how about having a property `emacs-mode' on symbols, with valid values
> (major minor major-minor nil)?  Getting a list of major modes would then
> be trivial.  (OK, for Emacs 23. ;-)

Did you mean (major minor global-minor nil)?

--
Kevin Rodgers





reply via email to

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