Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!eos!agate!ucbvax!decwrl!angelo!labrea!rutgers!aramis.rutgers.edu!athos.rutgers.edu!mende From: mende@athos.rutgers.edu (Bob Mende Pie) Newsgroups: gnu.emacs Subject: Re: Minor modes Message-ID: Date: 8 Feb 89 18:06:43 GMT References: <35717@bbn.COM> Organization: Yows `R' us Lines: 23 what is needed for minor modes (in my opion) is an alist. It's contents will be run thru for each character typed (a minor mode really does have to do this). If you had somthing like: (setq minor-mode-alist '( auto-fill . do-auto-fill auto-spell . do-auto-spell abbrev-mode . do-abbrev)) this would give the name of the minor mode (is this even nessassary) and the lisp function to do it. In the case of some things like auto-fill where the code is written in C, you could have the lisp code call the C routine. A while ago when I brought up the subject of minor modes, someone suggested that you should need a check both before the character is typed and after the character is typed. You could emulate the "before character" version with the after character version. I think that most minor modes want to work after. While two lists would be more flexable, one list would be faster. /Bob... --