all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Looking up and CALLING a key binding
Date: Thu, 08 Jan 2009 08:31:50 -0700	[thread overview]
Message-ID: <gk5687$67d$1@ger.gmane.org> (raw)
In-Reply-To: <362bfee7-cf0f-4832-b89c-52b30b902c19@d42g2000prb.googlegroups.com>

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	other threads:[~2009-01-08 15:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4013.1231164018.26697.help-gnu-emacs@gnu.org>
2009-01-06  1:13 ` Looking up and CALLING a key binding Xah Lee
2009-01-06 15:14   ` TheLonelyStar
2009-01-06 15:20     ` Lennart Borgman
     [not found]   ` <mailman.4126.1231254888.26697.help-gnu-emacs@gnu.org>
2009-01-07 18:08     ` Xah Lee
2009-01-08 15:31       ` Kevin Rodgers [this message]
2009-01-06 14:56 ` OtherMichael
2009-01-05 14:00 TheLonelyStar
2009-01-06 14:22 ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gk5687$67d$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.