Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!shamash!ahpd910!raistlin!ldk From: ldk@raistlin.udev.cdc.com (ld kelley x-6857) Newsgroups: comp.emacs Subject: Using tags and a function key Keywords: emacs,tags Message-ID: <14063@shamash.cdc.com> Date: 21 Sep 89 15:49:56 GMT Sender: news@shamash.cdc.com Reply-To: ldk@raistlin.udev.cdc.com (ld kelley x-6857) Distribution: usa Organization: Control Data Corp., Arden Hills, MN Lines: 24 I am trying (for the first time) to bind a function to a key. I am not having a good time :-). The function I am trying to use if find-tag with a numeric argument (ie: fing the next tag). No matter what arguments I put there, I get the message Wrong type argument: commandp,... I am working on a Sun3 with version 18.54 of emacs (Sun OS 4.0.3). I have tried the following: (define-key sun-raw-map "212z" '(find-tag nil 1 )) (define-key sun-raw-map "212z" '(find-tag 1)) The manual states that if you pass find-tag a numeric argument, and it will use the last tag and continue searching. thanks in advance, larry ------------------------------------------------------------------------------- Larry D. Kelley | Internet: ldk@udev.cdc.com Control Data Corporation| uucp: {uunet}!shamash!punjab!raistlin!ldk 4201 Lexington Ave No. | AT&T: 01-612-482-2046