From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: How does one use a macro in a special form? Date: Sat, 28 Jun 2003 13:23:53 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1056817962 8662 80.91.224.249 (28 Jun 2003 16:32:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2003 16:32:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 28 18:32:40 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19WIci-0002En-00 for ; Sat, 28 Jun 2003 18:32:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19WIbL-0003CR-GT for gnu-help-gnu-emacs@m.gmane.org; Sat, 28 Jun 2003 12:30:59 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feed.news.nacamar.de!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1056817203 78125 193.149.49.134 (28 Jun 2003 16:20:03 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 28 Jun 2003 16:20:03 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:114816 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11309 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11309 In particular, I want to use a macro acm-indent++ within a let (or let*), something like this: (let ((a a-binding) (b b-binding) ,(acm-indent++)) FORMS) and I want it to expand to this: (let ((a a-binding) (b b-binding) (indent-spaces (concat indent-spaces " "))) FORMS) The macro acm-indent++ looks like this: (defmacro acm-indent++ () "Increase the level of indentation in an acm-printf output by binding indent-spaces. This form must appear \"comma\"d in a let/let* variable list." `(indent-spaces (concat indent-spaces " "))) Thus far, I'm having no luck with it, the value of indent-spaces remaining unchanged within the let form. Question: does the "," operator have meaning when not within a backquote expression? Is it possible to do what I want to do, and if so, how do I go about it? Thanks in advance for any help! -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").