Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!super.upenn.edu!linc.cis.upenn.edu!brant From: brant@linc.cis.upenn.edu (Brant Cheikes) Newsgroups: comp.emacs Subject: Gnu Emacs and function key bindings Message-ID: <1739@super.upenn.edu> Date: Tue, 11-Aug-87 13:07:25 EDT Article-I.D.: super.1739 Posted: Tue Aug 11 13:07:25 1987 Date-Received: Thu, 13-Aug-87 03:33:14 EDT Sender: news@super.upenn.edu Reply-To: brant@linc.cis.upenn.edu (Brant Cheikes) Distribution: world Organization: University of Pennsylvania Lines: 36 Someone please straighten me out on this if I'm committing an egregious error. I'm defining a new set of keypad definitions in Gnu Emacs for a new machine (a Unix PC), and after looking in lisp/keypad.el, the method used seems pretty random. It appears that to bind a new function key to say, 'advertised-undo, one picks an entry in the function-keymap *arbitrarily*, uses keypad-default to bind the entry to 'advertised-undo, then places the entry (using ?c syntax) into the specific keymap using setup-terminal-keymap. It's the seeming arbitrariness of picking the function-keymap entry that bothers me. In keypad.el, there are a bunch of initial keymap to command bindings, and there is some documentation for others. Some of the documented keymap entries aren't bound in keypad.el. Can anyone tell me why, for example, I shouldn't just look through keypad.el, find a character that isn't used in any of its keypad-defaults, and bind that to the command of my choice, as in: (keypad-default "2" 'advertised-undo) then, later: (setup-terminal-keymap ATT-map-1 ; O prefix map '( ... ("a" . ?2) ; Undo (advertised-undo) ...)) Assuming Oa was generated by the key labeled "Undo" on my keyboard. Is there any rationale or methodology for picking the character to use in the second argument to keypad-default? Brant ----------------------------------------------------------------------------- Brant Cheikes University of Pennsylvania ARPA: brant@linc.cis.upenn.edu Computer and Information Science =============================================================================