[comp.emacs] GNU Emacs question. Making a function local to a buffer.

ag@elgar.UUCP (Keith Gabryelski) (01/15/89)

I have written a hexl-mode for GNU Emacs that allows a user to edit a
binary file in an `od -x' format.

I've had to re-map the keyboard to all sorts of hexl-mode functions
(like hexl-self-insert-command and hexl-forward-char).  What I'd like
to do is make the current functions local to the hexl buffer so I can
just modify them without touching the keymap.  Is there such a beast?
If not, wouldn't it be a good feature to add?

This would also make the mode a little more compatible with functions
that use the lower-level move char (and other) functions.  They would
automatically use my local functions instead of the standard ones.

Any help would be appreciated.

Pax, Keith

-- 
ag@elgar.CTS.COM         Keith Gabryelski          ...!{ucsd, jack}!elgar!ag