Path: utzoo!utgpu!watmath!uunet!aplcen!uakari.primate.wisc.edu!xanth!talos!kjones From: kjones@talos.uucp (Kyle Jones) Newsgroups: gnu.emacs.bug Subject: Re: can a command know its invoking key sequence? Message-ID: <1989Nov16.143623.11606@talos.uucp> Date: 16 Nov 89 14:36:23 GMT References: <8911151740.AA16000@hummingbird.LCS.MIT.EDU> Reply-To: kjones@talos.uu.net Distribution: gnu Lines: 13 mic@THEORY.LCS.MIT.EDU writes: > If a command is bound to several different key sequences, is there a way > for it to know which way it was called? Try using (this-command-keys). C-h f this-command-keys yields this-command-keys: Return string of the keystrokes that invoked this command. Note that this string includes the keys used to provide the prefix argument, if any.