From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Trust me I am a Doctor Newsgroups: gmane.emacs.help Subject: Re: Instrumenting macro calls Date: Wed, 30 Jun 2021 00:50:25 +0200 Message-ID: <87r1gkgu3p.fsf@riseup.net> References: <87fsx0xuw8.fsf@riseup.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22842"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 30 00:55:00 2021 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 1lyMd9-0005j3-8e for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 30 Jun 2021 00:54:59 +0200 Original-Received: from localhost ([::1]:45962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyMd7-0006pv-Sr for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 29 Jun 2021 18:54:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyMcm-0006pX-Pt for help-gnu-emacs@gnu.org; Tue, 29 Jun 2021 18:54:36 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:33970) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyMck-0002FJ-SA for help-gnu-emacs@gnu.org; Tue, 29 Jun 2021 18:54:36 -0400 Original-Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4GF0Cs0jCwzF4PH; Tue, 29 Jun 2021 15:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1625007273; bh=Qyxs3yW+sNkCSjxFmkziYy8tO+dfNSfrAefAjtOMUWk=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=HYj+eznbqQ0jccmpkjvTN8Ip7V5h5L8flkJue/sttw37hxB1Im8ffuyM6RkfziS8R nimrCg+HdrUaUIVgwaW6NHR/0cr6YsBmPn40yDDoCEOm0HFtX4vfhF0DFjoodg4ATH K3aXyR1n8YXoi3H9fQzl1sL2sFOw8Q5e2QjmaQSQ= X-Riseup-User-ID: 21DC33272B47BEA2FA656653CD9CDA4BB64A59D783ABCB0BDD224470C6E1E069 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4GF0Cq3tcNz5vbQ; Tue, 29 Jun 2021 15:54:31 -0700 (PDT) In-reply-to: Received-SPF: pass client-ip=198.252.153.129; envelope-from=pillule@riseup.net; helo=mx1.riseup.net 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.23 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" Xref: news.gmane.io gmane.emacs.help:131352 Archived-At: Stefan Monnier via Users list for the GNU Emacs text editor writes: >> Until now it seems to work ok. The issue I have with it, is >> instrumenting the macro calls with edebug. Apparently edebug does not >> understand that the forms are wrapped into (and ... ), and will evaluate >> each of them even if some returns nil ! > > Use `&rest form` instead of `def-body`. > (you don't need the "def-" version here anyway). > > > Stefan Thanks !