all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: function keys in macro
Date: Mon, 25 Nov 2013 18:14:58 +0530	[thread overview]
Message-ID: <87zjostzud.fsf@gmail.com> (raw)
In-Reply-To: <871u27i26h.fsf@nl106-137-194.student.uu.se> (Emanuel Berg's message of "Sat, 23 Nov 2013 16:10:21 +0100")


M-x global-set-key (do whatever Emacs asks you to do)

M-x list-command-history

I see this:

    (global-set-key [27 f2] (quote ignore))

I am using ESC and not Alt (as seen on my keyboard).  Alt-F2 opens a
"Run Program" for me here.

Emanuel Berg <embe8573@student.uu.se> writes:

> I tried so many ways to include one of the function
> keys in a macro, like:
>
> (fset 'F2 (kbd "M-<f2>"))
> (fset 'F2 (kbd "<M-f2>"))
> (fset 'F2 [(meta f2)])
> (fset 'F2 [M-f2])
> ;; and more...
>
> and then (after either of the above)
>
> (execute-kbd-macro (symbol-function 'F2))
>
> But then I always get:
>
> "Keyboard macro terminated by a command ringing the bell"
>
> But it works for the non-F* keys so there has to be
> something with those that breaks it.
>
> Thanks!



  parent reply	other threads:[~2013-11-25 12:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-23 15:10 function keys in macro Emanuel Berg
2013-11-25 12:38 ` Michael Heerdegen
2013-11-25 12:44 ` Jambunathan K [this message]
2013-11-25 12:50 ` Jambunathan K
     [not found] ` <mailman.7060.1385383126.10748.help-gnu-emacs@gnu.org>
2013-11-25 20:34   ` Emanuel Berg
2013-11-25 21:40     ` Emanuel Berg
2013-11-26  7:35       ` Michael Heerdegen
2014-01-14  1:47     ` Emanuel Berg
     [not found] ` <mailman.7064.1385384049.10748.help-gnu-emacs@gnu.org>
2013-11-25 20:40   ` Emanuel Berg
2013-11-25 20:42     ` Emanuel Berg
2013-11-27 12:38       ` Tassilo Horn
     [not found]       ` <mailman.7252.1385555936.10748.help-gnu-emacs@gnu.org>
2013-11-27 20:10         ` Emanuel Berg
2013-11-28 10:06           ` Jambunathan K
     [not found]           ` <mailman.7323.1385633250.10748.help-gnu-emacs@gnu.org>
2013-11-28 15:25             ` Emanuel Berg

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=87zjostzud.fsf@gmail.com \
    --to=kjambunathan@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.