From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: function keys in macro Date: Sat, 23 Nov 2013 16:10:21 +0100 Organization: Aioe.org NNTP Server Message-ID: <871u27i26h.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1385219717 2938 80.91.229.3 (23 Nov 2013 15:15:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Nov 2013 15:15:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 23 16:15:24 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 1VkEvY-000636-8B for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Nov 2013 16:15:20 +0100 Original-Received: from localhost ([::1]:44053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkEvX-0003eD-FY for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Nov 2013 10:15:19 -0500 Original-Path: usenet.stanford.edu!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: VVbyYd/iFZoeWNmD9i++cQ.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:oaIwJF5DD3s9MuR1dNWylm11Xs4= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:202314 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:94584 Archived-At: 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! -- Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu underground experts united: http://user.it.uu.se/~embe8573