From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: kbd macro does not evaluate its parameter Date: Mon, 26 Sep 2011 09:48:22 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317001715 21068 80.91.229.12 (26 Sep 2011 01:48:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2011 01:48:35 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 26 03:48:31 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R80J3-0003pS-3A for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Sep 2011 03:48:29 +0200 Original-Received: from localhost ([::1]:37348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R80J2-00043v-Jw for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Sep 2011 21:48:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R80Iy-0003zn-Hw for help-gnu-emacs@gnu.org; Sun, 25 Sep 2011 21:48:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R80Ix-00032y-Bh for help-gnu-emacs@gnu.org; Sun, 25 Sep 2011 21:48:24 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:55386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R80Ix-00032t-83 for help-gnu-emacs@gnu.org; Sun, 25 Sep 2011 21:48:23 -0400 Original-Received: by qyl38 with SMTP id 38so9302535qyl.0 for ; Sun, 25 Sep 2011 18:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=EnqcU8PfD7zCrQyZTbYOYj1CN4J1C8G5u2LsZvwnxi8=; b=b3MqeVaLoeNRuGOMnANhBafR0PPPn1ZI5iPTHHz5FzwkC6NP4HwZd+KXeu5JLHhq58 DEgEdku5csM3drc9Jliio/WxKSaPHL3ZC65jcd3oLem5lvyix0wF5pb4FrmEgJ64nlzn M5sEQxWGwHehOlWoQQF1t1PR7wHadrXRreKw8= Original-Received: by 10.224.185.136 with SMTP id co8mr1215712qab.7.1317001702777; Sun, 25 Sep 2011 18:48:22 -0700 (PDT) Original-Received: by 10.224.45.82 with HTTP; Sun, 25 Sep 2011 18:48:22 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.169 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:82344 Archived-At: Also it's not a bug. Now that I've given it some closer thought. Please don't reply to this. On Mon, Sep 26, 2011 at 9:32 AM, Le Wang wrote: > Oops. =A0Sorry, this was meant for the bug list. > > On Mon, Sep 26, 2011 at 9:29 AM, Le Wang wrote: >> From stackoverflow: >> http://stackoverflow.com/questions/7549628/whats-wrong-with-the-followin= g-unbind-script/7549825#7549825 >> >> User tries: >> >> =A0(dolist (abcc '("C-a" "C-b")) >> =A0 =A0(global-unset-key (kbd abcc))) >> >> Which fails. >> >> (defmacro kbd (keys) >> =A0"Convert KEYS to the internal Emacs key representation. >> KEYS should be a string constant in the format used for >> saving keyboard macros (see `edmacro-mode')." >> =A0(read-kbd-macro keys)) >> >> kbd should evaluate its parameter before calling the read-kbd-macro >> function. =A0Its parameter types should all be self evaluating. >> >> -- >> Le >> > > > > -- > Le > --=20 Le