help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newbie prefix question


From: Chris Seberino
Subject: newbie prefix question
Date: Wed, 31 Oct 2001 21:37:25 -0800
User-agent: Mutt/1.2.5i

I'm trying to use a prefix in a command.
I want to type "ESC <some number>" before
invoking say C-a and have C-a know what
<some number> is..


If I type "ESC x print-prefix" then
it says the argument is 1 but I cannot
type C-a after "ESC 5" and get a 5.

Please help.

Here is my command I wrote to test:

;(global-set-key "\C-a" 'print-prefix)

(defun print-prefix(&optional arg)
   (interactive "P")
   (message "Argument is %d." (prefix-numeric-value arg))
   
)

Chris
-- 
=======================================================
| Dr. Christian Seberino  || (619) 553-7940 (office1) |
| SPAWARSYSCEN 2733       || (619) 553-2564 (office2) |
| 53560 HULL ST           || (619) 553-6307 (fax)     |
| SAN DIEGO CA 92152-5001 || address@hidden |
=======================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]