🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98439

Request for enhancement: Keymaps for minor modes.

#98439
From: Per Abrahamsen
Date: Fri, 07 Jun 1991 03:18
39 lines
2307 bytes
This is not a bug report, but a `request for enhancement'.

Many major modes really ought to be minor modes.  Obvious examples
includes outline-mode and indented-text-mode.  However, minor modes
are currently not allowed to define their own keymaps.  Minor modes
which need a key either use a global key binding (gdb-mode) or relies
on support from the emacs primitives (auto-fill-mode). 

There are a good reason for not allowing minor modes to bind keys:
Several minor modes can be active simultaneously, leading to potential
conflict for the key bindings.

However, all there is needed is some mechanism for managing the minor
keymaps.  I have implemented a simple keymap handler for minor modes,
where the key bindings for the minor mode most recently activated take
precedence.  The keymap is adjusted when you enter or leave a minor
mode. 

Such a mechanism is of no use, unless it is used by all minor modes.
That is, it must be included in the standard distribution.  Preferable
with a better design and implementation than mine.

Does anyone else believe minor mode keymaps should be supported in
Emacs 19?

The code for handling minor keymaps are available for anonymous ftp
from the site iesd.auc.dk.  It is extremely short, in case you are
worried about including new features in version 19.  It can be found,
together with an outline-minor-mode in the file
`/pub/emacs-lisp/outline.shar'.  Using outlines with, for example,
LaTeX, C, or Lisp files is very nice!

--
The `From: ' line in the header should read

	From: abraham@iesd.auc.dk

If this is not the case, there must be some seriously broken software
somewhere on the path.
Technical Details
Message-ID: <ABRAHAM.91Jun6231824@thiele.iesd.auc.dk>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,aa5497670230d9c,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-06-06 20:18:24 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: abraham@IESD.AUC.DK (Per Abrahamsen)
Newsgroups: gnu.emacs.bug
Subject: Request for enhancement: Keymaps for minor modes.
Message-ID: <ABRAHAM.91Jun6231824@thiele.iesd.auc.dk>
Date: 7 Jun 91 03:18:24 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: HUGIN Expert A/S
Lines: 39
Approved: bug-gnu-emacs@prep.ai.mit.edu