From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [gstupp@cisco.com: kmacro-bind-to-key does not bind to function keys] Date: Sun, 08 Jul 2007 18:23:20 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1183933407 1046 80.91.229.12 (8 Jul 2007 22:23:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2007 22:23:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 09 00:23:26 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I7fA5-0002Ut-Mq for ged-emacs-devel@m.gmane.org; Mon, 09 Jul 2007 00:23:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7fA5-0003IM-0f for ged-emacs-devel@m.gmane.org; Sun, 08 Jul 2007 18:23:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I7f9p-000369-9V for emacs-devel@gnu.org; Sun, 08 Jul 2007 18:23:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I7f9o-00035c-HH for emacs-devel@gnu.org; Sun, 08 Jul 2007 18:23:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7f9o-00035X-6r for emacs-devel@gnu.org; Sun, 08 Jul 2007 18:23:08 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I7f9n-0005Ze-SK for emacs-devel@gnu.org; Sun, 08 Jul 2007 18:23:07 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1I7fA0-0001RX-6N; Sun, 08 Jul 2007 18:23:20 -0400 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74478 Archived-At: Would someone please DTRT, then ack? ------- Start of forwarded message ------- X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=failed version=3.1.0 Date: Sun, 8 Jul 2007 14:53:13 +0300 From: Gideon Stupp To: bug-gnu-emacs@gnu.org DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1547; t=1183895600; x=1184759600; c=relaxed/simple; s=amsdkim1002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=gstupp@cisco.com; z=From:=20Gideon=20Stupp=20 |Subject:=20kmacro-bind-to-key=20does=20not=20bind=20to=20function=20keys |Sender:=20; bh=lbJVRecmfXigonNTZ61o9tB7X/GOd7tacBxeU1hN3vI=; b=FI4Sf1c70PJ8iIC/A3QAQFGvPKhWEsESibYveI5zOwlScOUOnOQGp0zHwvsME3Airv3DTu06 PCyuHhWf1lQ9hpDE72g976zjGyV3QyrLb2JRSwoRJjoYyhZ1oNZIZy2E; Authentication-Results: ams-dkim-1; header.From=gstupp@cisco.com; dkim=pass ( sig from cisco.com/amsdkim1002 verified; ); Subject: kmacro-bind-to-key does not bind to function keys kmacro-bind-to-key returns "call-interactively: Wrong type argument: number-or-marker-p, f12" when trying to assign a macro to function key f12. Possible patch: - --- /tmp/kmacro.el.orig 2007-07-08 14:48:17.000000000 +0300 +++ /tmp/kmacro.el 2007-07-08 14:49:01.000000000 +0300 @@ -793,7 +793,8 @@ (error "No keyboard macro defined")) (let ((key-seq (read-key-sequence "Bind last macro to key: ")) ok cmd) - - (when (= (length key-seq) 1) + (when (and (stringp key-seq) + (= (length key-seq) 1)) (let ((ch (aref key-seq 0))) (if (or (and (>= ch ?0) (<= ch ?9)) (and (>= ch ?A) (<= ch ?Z))) In GNU Emacs 22.1.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-07-08 on gstupp-lnx Windowing system distributor `The X.Org Foundation', version 11.0.60802000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Help Minor modes in effect: shell-dirtrack-mode: t which-function-mode: t show-paren-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t view-mode: t _______________________________________________ bug-gnu-emacs mailing list bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs ------- End of forwarded message -------