From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#65620: void function edebug-after Date: Sat, 2 Sep 2023 13:57:38 +0000 Message-ID: References: <87ledsku08.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8160"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , acm@muc.de, 65620-done@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 02 15:59:14 2023 Return-path: Envelope-to: geb-bug-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 1qcR9d-0001wB-Q6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Sep 2023 15:59:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcR9L-0006RU-1d; Sat, 02 Sep 2023 09:58:55 -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 1qcR9J-0006Qj-Hl for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 09:58:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcR9J-0000rN-9c for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 09:58:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcR9S-0000Qb-Jq for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 09:59:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Sep 2023 13:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 65620 X-GNU-PR-Package: emacs Mail-Followup-To: 65620@debbugs.gnu.org, acm@muc.de, acm@muc.de Original-Received: via spool by 65620-done@debbugs.gnu.org id=D65620.16936630841575 (code D ref 65620); Sat, 02 Sep 2023 13:59:02 +0000 Original-Received: (at 65620-done) by debbugs.gnu.org; 2 Sep 2023 13:58:04 +0000 Original-Received: from localhost ([127.0.0.1]:38195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcR8U-0000PJ-Tn for submit@debbugs.gnu.org; Sat, 02 Sep 2023 09:58:04 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:60770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcR8O-0000Om-QF for 65620-done@debbugs.gnu.org; Sat, 02 Sep 2023 09:58:01 -0400 Original-Received: (qmail 18663 invoked by uid 3782); 2 Sep 2023 15:57:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=muc.de; i=@muc.de; q=dns/txt; s=default; t=1693663060; h=date : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to : from : from; bh=e94rEqWCU3Cgrq9cYJdnj4bFqS40BDiMJYHQHO6PonM=; b=CzAbW+zDjfRk6dFO0awoZShc7YNb1YM/+YpeJXsWUs1Zg+nTfZ17v6wyrUcYY2kpzHAFQ lnBF4AUr5BuCW6oULld9ptVF8UuWxOY7j2mpbVeTBSA2GsgqmHP+U4FxQzhA6IN8400PhoL 8X3geLTV6CRaH6UE6vde06g/UJNj2EB4gPm3foMMeFW5MmPrPE/niaDgW/J+BSp7cEzG3pL IqIE0i+bsXzMuYVcJ2gJGWNlXbj4JK58AhHtbPBenXhwzhuypEmvlkBwu0wSpKnpRz181aL Ag2sgPGITocw85g0GJPcqj5zEU1xZ2Qbc6HMCR8NaL5MgO9I/gRnEgFiEz5g== Original-Received: from acm.muc.de (p4fe15929.dip0.t-ipconnect.de [79.225.89.41]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 02 Sep 2023 15:57:38 +0200 Original-Received: (qmail 28516 invoked by uid 1000); 2 Sep 2023 13:57:38 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268999 Archived-At: Hello, Gerd. On Sat, Sep 02, 2023 at 15:15:55 +0200, Gerd Möllmann wrote: > Alan Mackenzie writes: [ .... ] > > .... However, edebugging through a function which invoked such a > > macro can produce errors. This is all caused by having a `form' > > element in the edebug spec where there should be `sexp'. > > To try and ameliorate this, I propose adding a sentence to the > > description of `sexp' in doc/lispref/edebug.texi: > > diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi > > index c5be3a40d2c..a64ebda6803 100644 > > --- a/doc/lispref/edebug.texi > > +++ b/doc/lispref/edebug.texi > > @@ -1289,6 +1289,8 @@ Specification List > > @item sexp > > A single unevaluated Lisp object, which is not instrumented. > > @c an "expression" is not necessarily intended for evaluation. > > +If the macro evaluates an argument at macro-expansion time, you should > > +use @code{sexp} for it, not @code{form}. > > @item form > > A single evaluated expression, which is instrumented. If your macro > Yes, that's helpful. Thanks! I've committed the patch to the two files, and I'm now closing the bug. -- Alan Mackenzie (Nuremberg, Germany).