Path: utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!uunet!crdgw1!montnaro From: montnaro@sprite.crd.ge.com (Skip Montanaro) Newsgroups: comp.emacs Subject: Re: More than one function ? Message-ID: Date: 17 Nov 89 20:05:16 GMT Article-I.D.: sprite.MONTNARO.89Nov17150516 References: <86@nixbln.UUCP> Sender: news@crdgw1.crd.ge.com Reply-To: (Skip Montanaro) Organization: GE Corporate Research & Development, Schenectady, NY Lines: 19 In-reply-to: lutz@nsebln.UUCP's message of 14 Nov 89 15:30:21 GMT In article <86@nixbln.UUCP> lutz@nsebln.UUCP (Lutz Hilken) writes: Is there a proper way to bind two functions to one key? Ok, I can write a new function wich calls that one I like to execute, but... I would like something like (define-key CSI-map "" 'funtion 1 'function 2). How would you know which got executed? If you'd execute both, how would they decide how to split up any arguments? Why not just (defun function-wrapper () (interactive ...) (function1 ...) (function2 ...)) (define-key CSI-map "" 'function-wrapper) -- Skip Montanaro (montanaro@crdgw1.ge.com)