Path: utzoo!utgpu!watmath!uunet!mcvax!hp4nl!mhres!jv From: jv@mhres.mh.nl (Johan Vromans) Newsgroups: gnu.emacs Subject: buffer local functions - is it possible Message-ID: <3184@mhres.mh.nl> Date: 24 May 89 11:41:56 GMT Organization: Multihouse NV, the Netherlands Lines: 26 In a specific buffer, I want to re-define the semantics of certain functions (e.g. 'scroll-up', 'scroll-down') to perform a different (but intiutive) action. I know of some methods to obtain this, like 'copy-keymap' followed by 'substitute-key-definition', or by making a wrapper around the original function. It seems to me that real buffer-local functions should be possible also, e.g.: (make-local-variable 'scroll-up) (fset 'scroll-up '(lambda ...... ))) But this doesn't work. Is is possible? And if so - how? Thanks for any help. Johan -- Johan Vromans jv@mh.nl via european backbone (mcvax) Multihouse Automatisering bv uucp: ..!{mcvax,hp4nl}!mh.nl!jv Doesburgweg 7 phone: +31 1820 62944 2803 PL Gouda - The Netherlands fax: +31 1820 62500