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: kbd macro does not evaluate its parameter Date: Mon, 26 Sep 2011 09:29:47 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1317000599 15084 80.91.229.12 (26 Sep 2011 01:29:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2011 01:29:59 +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:29:55 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 1R8014-000793-Rn for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Sep 2011 03:29:54 +0200 Original-Received: from localhost ([::1]:44040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8014-0001nT-1W for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Sep 2011 21:29:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8010-0001nO-8r for help-gnu-emacs@gnu.org; Sun, 25 Sep 2011 21:29:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R800z-0000II-0X for help-gnu-emacs@gnu.org; Sun, 25 Sep 2011 21:29:50 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:52545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R800y-0000IC-Ug for help-gnu-emacs@gnu.org; Sun, 25 Sep 2011 21:29:48 -0400 Original-Received: by qyl38 with SMTP id 38so9292660qyl.0 for ; Sun, 25 Sep 2011 18:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=jzWbE3ndvOvunW2tqvcSVuQXqna0s5fRPaI+Q39gwDA=; b=cXdPmSbtwFApx98X0c2XesUS/FGnIY0lw3SLA6cW2TjhmOYCQruxmM0T8IPeEhak5Z NqdvzuB3HH/9qlFoIM35LkM/3h0fJFleExSUTl0Ub1gdpFHjIMD5eh/U52qDnHgX1dV6 fPcZRC7zIFTH3H/g+jPacO1Jitvxldi463Z1o= Original-Received: by 10.224.185.136 with SMTP id co8mr1208906qab.7.1317000588080; Sun, 25 Sep 2011 18:29:48 -0700 (PDT) Original-Received: by 10.224.45.82 with HTTP; Sun, 25 Sep 2011 18:29:47 -0700 (PDT) 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:82342 Archived-At: >From stackoverflow: http://stackoverflow.com/questions/7549628/whats-wrong-with-the-following-unbind-script/7549825#7549825 User tries: (dolist (abcc '("C-a" "C-b")) (global-unset-key (kbd abcc))) Which fails. (defmacro kbd (keys) "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')." (read-kbd-macro keys)) kbd should evaluate its parameter before calling the read-kbd-macro function. Its parameter types should all be self evaluating. -- Le