From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Miele Newsgroups: gmane.emacs.help Subject: Re: Printing code made by a macro Date: Sun, 06 Aug 2023 08:22:06 +0200 Message-ID: <87tttcvg51.fsf@whxvd.name> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18943"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 06 08:29:19 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qSXGR-0004lB-At for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 06 Aug 2023 08:29:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSXFl-0004eq-1E; Sun, 06 Aug 2023 02:28:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSXFi-0004d0-P0 for help-gnu-emacs@gnu.org; Sun, 06 Aug 2023 02:28:34 -0400 Original-Received: from mout-p-201.mailbox.org ([80.241.56.171]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qSXFg-00049R-Es for help-gnu-emacs@gnu.org; Sun, 06 Aug 2023 02:28:34 -0400 Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4RJTzb0mWWz9sW5; Sun, 6 Aug 2023 08:28:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whxvd.name; s=MBO0001; t=1691303307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SKcw7O/XQi7GoeSA8uGs4xgrzBjcsyIPNZ+VO+cxn78=; b=XtZZp5Us9A+aPaD8uslAB21z8QPQbjMpGQG75gcrd0G8zyGMG1VH5CAdvLvLlHFF66P4Au MMkYiXr2OFZKvW03BkbbSwIjKeGZ7GPryyI/3QMaCdxHyllzZVVNXBi4iTrDsYzKWLR3Gk /OitZq7ebJGJ5s2uBzoZyVnGqeYC4/+EvbF5eo11gI9oUoiBO1M35QSkUUt5u1i+Ajiygk 0N5gdlVUYrUED7sYaH9qNvhIiDbcl+Ae1P/ApuUN2NL0zNpA1s4Apc3GZ1I3hFg4GE2Vw/ XSff0Oh+Lev37GiPnTcIrwnFCF4PSIafz6kNbF20s0NHR1rWuTQFA2FNF8/GvA== In-reply-to: Received-SPF: pass client-ip=80.241.56.171; envelope-from=iota@whxvd.name; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144634 Archived-At: > From: Heime > Date: Sat, 2023-08-05 23:42 +0000 > > Is there a proper way to display the code produced by a macro? https://github.com/emacsorphanage/macrostep can do that in an interactive way. From its README: macrostep is an Emacs minor mode for interactively stepping through the expansion of macros in Emacs Lisp source code. It lets you see exactly what happens at each step of the expansion process by pretty-printing the expanded forms inline in the source buffer, which is temporarily read-only while macro expansions are visible.