[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Recent attempts at standardizing major mode definitions.
From: |
Richard Stallman |
Subject: |
Re: Recent attempts at standardizing major mode definitions. |
Date: |
Tue, 03 Sep 2002 09:26:53 -0400 |
The second, more recent purpose is as a "standard" way to define any
major mode whatsoever.
Stefan started using define-derived-mode for this, but I rejected the
idea. He had already converted a few modes, and not all of them have
been changed back.
Defining a macro define-major-mode might be a good idea.
(put 'mymode 'derived-mode-parent 'nil)
There is no need for that--nil is the default.
(defun mymode nil "docstring\n\nThis mode runs the hook
`mymode-hook', as the final step\nduring
initialization.\n\n\\{mymode-map}"
We don't always want to use \\{...} in every major mode doc string.
Major modes usually should have their own keymap...
There is a "usually" in this sentence. So maybe define-major-mode
should also take a keymap argument. This is a lot less clear than it
is for syntax-tables and abbrev-tables however.
Would you like to look at all the major modes and see which ones don't
have keymaps? It could be that fundamental-mode is the only one.
- Re: Recent attempts at standardizing major mode definitions., (continued)
- Re: Recent attempts at standardizing major mode definitions., Luc Teirlinck, 2002/09/03
- Re: Recent attempts at standardizing major mode definitions., Stefan Monnier, 2002/09/04
- Re: Recent attempts at standardizing major mode definitions., Luc Teirlinck, 2002/09/04
- Re: Recent attempts at standardizing major mode definitions., Stefan Monnier, 2002/09/06
- Re: Recent attempts at standardizing major mode definitions., David Masterson, 2002/09/06
- Re: Recent attempts at standardizing major mode definitions., Luc Teirlinck, 2002/09/06
- Re: Recent attempts at standardizing major mode definitions., Luc Teirlinck, 2002/09/06
- Re: Recent attempts at standardizing major mode definitions., Luc Teirlinck, 2002/09/06
- Re: Recent attempts at standardizing major mode definitions., Luc Teirlinck, 2002/09/06
Re: Recent attempts at standardizing major mode definitions.,
Richard Stallman <=