Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!M.CS.UIUC.EDU!liberte From: liberte@M.CS.UIUC.EDU (Daniel LaLiberte) Newsgroups: gnu.emacs.bug Subject: (none) Message-ID: <8901241832.AA10785@m.cs.uiuc.edu> Date: 24 Jan 89 18:32:18 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 27 Re: Minor Modes There should be a way to have a list checked after each character insert to see what minor modes should be done. My after-change-hook does this (except for only one function, which could call others). After each change to the buffer (insertion, deletion, or replacement), the hook function is called. There is also a before-change-hook. The hook functions could signal an error to prevent other change-hooks from running, or prevent the command from completing. With several hook functions, each called for each buffer change, there might be conflicts over which gets to do what with the change. Suppose a spell checker wanted to correct your spelling, while an abbrev expander wanted to expand what looked like a misspelling into a real word. I think the change-hooks get around the problems associated with multiple minor modes that are implemented by changing the keymaps. I am sure there will be new interesting problems. Dan LaLiberte uiucdcs!liberte liberte@cs.uiuc.edu liberte%a.cs.uiuc.edu@uiucvmd.bitnet