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:32:08 +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 1317000741 15974 80.91.229.12 (26 Sep 2011 01:32:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2011 01:32:21 +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:32:17 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 1R803M-0007qb-Ug for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Sep 2011 03:32:17 +0200 Original-Received: from localhost ([::1]:49812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R803M-0002dM-G3 for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Sep 2011 21:32:16 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R803F-0002d6-R7 for help-gnu-emacs@gnu.org; Sun, 25 Sep 2011 21:32:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R803E-0000dX-Qc for help-gnu-emacs@gnu.org; Sun, 25 Sep 2011 21:32:09 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:63608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R803E-0000dT-OM for help-gnu-emacs@gnu.org; Sun, 25 Sep 2011 21:32:08 -0400 Original-Received: by qyk27 with SMTP id 27so6095775qyk.0 for ; Sun, 25 Sep 2011 18:32:08 -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=p70armnAkyJHz4ET0pdVOCZDv7J0icWRWTUv4WwPJIM=; b=sXpZk04Fr1k5qMPv0KO2Ns7hC8pgLxhFoR4o7cgMWaXUC9kFBLPU/soPn5R77umKsA ubWvxsToFnWco+hSenFqCxNuPivJkpdbFzig/F11GjH4/uS+ma4odQAfb/pEIsqIaDrV pZGrJjFwtdwaym4OqEeGg9pPj/Bg5QHmE9pmg= Original-Received: by 10.224.33.67 with SMTP id g3mr2217848qad.357.1317000728491; Sun, 25 Sep 2011 18:32:08 -0700 (PDT) Original-Received: by 10.224.45.82 with HTTP; Sun, 25 Sep 2011 18:32:08 -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.176 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:82343 Archived-At: Oops. Sorry, 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-following= -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 > --=20 Le