From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: hypothetical question about macros Date: Fri, 15 Apr 2011 06:57:28 +0300 Organization: A noiseless patient Spider Message-ID: <87ipug2ml3.fsf@mithlond.arda> References: <27b70c81-5057-435e-8304-e400fa8e00d2@w9g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1306267440 9995 80.91.229.12 (24 May 2011 20:04:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:04:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 22:03:56 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 1QOxpY-0002mu-06 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:03:52 +0200 Original-Received: from localhost ([::1]:41455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOxpX-0000Xn-EQ for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:03:51 -0400 Original-Path: usenet.stanford.edu!news-transit.tcx.org.uk!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 9 Injection-Info: mx03.eternal-september.org; posting-host="TcTTtsh3Iz4M1vNcTNIcFQ"; logging-data="19049"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19V/iLmakskrA0yZv6MTDExxPd08og/Ifo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:wdI8TZzH2M1bs4vL6Ty4oTZbVyQ= sha1:HqtAIZEkml4P1ZWDPcUGQHRV88Y= Original-Xref: usenet.stanford.edu gnu.emacs.help:186679 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:81025 Archived-At: * 2011-04-14T16:33:15-07:00 * Alan wrote: > If there were some reason not to have to resort to using "progn" I > don't see how to do so. You can have almost any kind of code in a macro definition, but note that a macro is single expressions in source code and it also expands to a single expression. If you need several commands (imperative-speaking) in the expanded code you need to wrap them.