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: How do I get diagnostic output from a macro? Date: Mon, 28 Nov 2005 10:29:33 +0000 Organization: muc.de e.V. -- private internet access Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1133180324 5057 80.91.229.2 (28 Nov 2005 12:18:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 12:18:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 28 13:18:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EghwG-0006LF-Ht for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Nov 2005 13:16:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EghwD-0004RL-Et for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Nov 2005 07:16:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!canoe.uoregon.edu!newshub.sdsu.edu!newsfeed.freenet.de!news.osn.de!diablo1-ffm.news.osn.de!news.belwue.de!informatik.tu-muenchen.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1133173346 4391 193.149.49.134 (28 Nov 2005 10:22:26 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 28 Nov 2005 10:22:26 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:135859 Original-To: help-gnu-emacs@gnu.org 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:31463 Archived-At: GNU Emacs 21.3. I'd like to get diagostic output whilst expanding a macro. I type this into my *scratch* buffer: (defmacro foo () (message "evaluating foo") (eval-when-compile (message "e-w-c: compiling foo"))) ^ | (defun bar () (foo)) ^ | (bar) ^ | When I do C-x C-e at , I get no message output. I would have expected to see "e-w-c compiling foo" in the message area. When I do C-x C-e at , I still get no output. I would have expected "evaluating foo") Finally, C-x C-e at outputs both "evaluating foo" and "e-w-c: compiling foo". I'm baffled. What do I have to put into the macro so as to get "evaluating foo" at ? Does it make any difference if the `(defmacro foo ...)' is byte compiled? Thanks for the 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").