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

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

Re: Looking up and CALLING a key binding


From: Kevin Rodgers
Subject: Re: Looking up and CALLING a key binding
Date: Thu, 08 Jan 2009 08:31:50 -0700
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Xah Lee wrote:
On Jan 6, 7:14 am, TheLonelyStar <nabb...@lonely-star.org> wrote:
do it like this:

(funcall (lookup-key (current-global-map) (kbd "M-r")))

this will find out the function assigned to the key “Alt+r”, then call
the function.

It will call the function with no arguments, so if it has required
arguments it will fail.  Use call-interactively instead of funcall
to provide any required arguments.

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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