From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: How does one use a macro in a special form? Date: Sun, 29 Jun 2003 14:39:44 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84u1a9rran.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056890543 27937 80.91.224.249 (29 Jun 2003 12:42:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 29 Jun 2003 12:42:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 29 14:42:21 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 19WbVc-0007GI-00 for ; Sun, 29 Jun 2003 14:42:20 +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 19WbUM-0000gD-Cm for gnu-help-gnu-emacs@m.gmane.org; Sun, 29 Jun 2003 08:41:02 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!pd9e1e336.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: pd9e1e336.dip.t-dialin.net (217.225.227.54) Original-X-Trace: fu-berlin.de 1056890424 32378936 217.225.227.54 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:Qu+rSThnM1GxWjGz2SRHPro/vNg= Original-Xref: shelby.stanford.edu gnu.emacs.help:114832 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:11325 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11325 Alan Mackenzie writes: > 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) You could write a macro that allows you to say (with-acm-indent++ (let ((a a-binding) (b b-binding)) FORMS)) Something like this might work: (defmacro with-acm-indent++ (&rest body) `(let ((indent-spaces (concat indent-spaces " "))) ,body)) I haven't tested it, but maybe you get the idea. -- ~/.signature