From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: function keys in macro Date: Mon, 25 Nov 2013 18:14:58 +0530 Message-ID: <87zjostzud.fsf@gmail.com> References: <871u27i26h.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385383747 12438 80.91.229.3 (25 Nov 2013 12:49:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 12:49:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 25 13:49:12 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VkvbD-0004RS-RJ for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 13:49:11 +0100 Original-Received: from localhost ([::1]:52237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkvbD-00024n-3V for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 07:49:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkvaz-0001xF-0C for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 07:49:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vkvat-0002KD-Lk for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 07:48:56 -0500 Original-Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:34740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkvat-0002K7-E5 for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 07:48:51 -0500 Original-Received: by mail-pd0-f181.google.com with SMTP id p10so5367176pdj.40 for ; Mon, 25 Nov 2013 04:48:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=PAE9lV5oSf3tiuWycqYkrO4gvoOcxFgV6bXxFOS0qFU=; b=0urTXXsYWf8KFoT4cX6e+zBHRi0NyGtpswAmeGY9u9uWfnaHVHBaru+5gM8RerG828 ey+VEsOta8bEbliVmwkK9u2/RAU673FbSRlpIVIDqI5qPthtYmi+fIZu3JthKT1b87Dw iTFJBXtMlUQoBwGOkzMDCu8Zle0jsf1uiDWOogT9fubHKKWS/OQkU8FTXSsdMsSiKNm/ 1PGowBUS8EUTFGvynAni9vBfvuNkF7bpRhDsbnVjx0mZrmxeQ3KZ8PTttzBrSGvZcz0h 2hvAfbkUkRwu9Y0SDil8W3Gkk2wTdb3Npo7BhxzanRDVS3PhdRR3xmGQnsHLqG08OoDg gzQg== X-Received: by 10.68.25.229 with SMTP id f5mr26439855pbg.6.1385383730430; Mon, 25 Nov 2013 04:48:50 -0800 (PST) Original-Received: from debian-6.05 ([101.63.143.140]) by mx.google.com with ESMTPSA id ha10sm73113974pbd.17.2013.11.25.04.48.47 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 25 Nov 2013 04:48:49 -0800 (PST) In-Reply-To: <871u27i26h.fsf@nl106-137-194.student.uu.se> (Emanuel Berg's message of "Sat, 23 Nov 2013 16:10:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94607 Archived-At: 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 writes: > I tried so many ways to include one of the function > keys in a macro, like: > > (fset 'F2 (kbd "M-")) > (fset 'F2 (kbd "")) > (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!