From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Is it possible for a macro to expand to nothing? Date: Mon, 23 Nov 2009 14:56:47 +0000 (UTC) Organization: muc.de e.V. Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1258991090 8475 80.91.229.12 (23 Nov 2009 15:44:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 15:44:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 23 16:44:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NCb5o-0005sQ-8b for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Nov 2009 16:44:44 +0100 Original-Received: from localhost ([127.0.0.1]:53678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCb5n-0003Ym-I5 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Nov 2009 10:44:43 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!newsfeed.freenet.de!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: marvin.muc.de Original-X-Trace: colin2.muc.de 1258988207 38814 2001:608:1000::2 (23 Nov 2009 14:56:47 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Mon, 23 Nov 2009 14:56:47 +0000 (UTC) User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) Original-Xref: news.stanford.edu gnu.emacs.help:174978 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70050 Archived-At: That is, not to a call to a null defun, but truly to nothing: i.e., the ensuing code (as least, when byte compiled) will be identical to what it would have been, had the macro invocation been omitted. I want something like this: (defmacro ifdef (condition &rest forms) "If the compile time CONDITION is non-nil, dump the FORMS to the calling defun. Otherwise do nothing." ......) -- Alan Mackenzie (Nuremberg, Germany).