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: Wed, 30 Aug 2023 12:57:29 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21172"; mail-complaints-to="usenet@ciao.gmane.io" To: 65620@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 30 14:59:16 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 1qbKmy-0005HH-2e for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Aug 2023 14:59:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbKme-0004qw-9v; Wed, 30 Aug 2023 08:58:56 -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 1qbKmd-0004qg-8K for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 08:58:55 -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 1qbKmd-0006Jv-08 for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 08:58:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qbKmk-0001T1-8B for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 08:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Aug 2023 12:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65620 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16934002815550 (code B ref -1); Wed, 30 Aug 2023 12:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Aug 2023 12:58:01 +0000 Original-Received: from localhost ([127.0.0.1]:52372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbKll-0001RK-Eh for submit@debbugs.gnu.org; Wed, 30 Aug 2023 08:58:01 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:36874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbKlc-0001Qi-Qh for submit@debbugs.gnu.org; Wed, 30 Aug 2023 08:57:56 -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 1qbKlP-0004gn-LX for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 08:57:39 -0400 Original-Received: from mail.muc.de ([193.149.48.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbKlK-0005t3-Ih for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 08:57:39 -0400 Original-Received: (qmail 154 invoked by uid 3782); 30 Aug 2023 14:57:31 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=muc.de; i=@muc.de; q=dns/txt; s=default; t=1693400251; h=date : to : subject : message-id : mime-version : content-type : from : from; bh=s5tWaSE0Gh1coqY7X1jBKohyKJ3XfC4EN/0GIgKlJf4=; b=Lc8bOe2wXHh2sdfcSJdaHU1IwkSuTDcPDxSmc9/+ReIvDmXJ5b8LIVqLC7Y9FuTd/BE0R vcejKbLPkTzAiIwaoW/rXOKmlBF0OlfmA4HKL+s1s14HJYNwfh+o7nWlorMzsd3+HyeHx5+ /PEmgLZZLWbfndvIAgECTsgigmzZKtk2hWEI29g4S/f20AQYtiZn1nOrgo0idI+TyLQNGnS 3yNbQvZvscKsbqsqqVEnVbYbNSMzpQw6vWjO1H0mw17cSDn6ZZctEaVCxLEgdRXPiFqg7cX Dz4fWUdZxikQJ9Wo27HZt77m++aSwuMjoBFBKft/e3GoUGQ1B8aur6Vyf3PA== Original-Received: from acm.muc.de (pd953a1ec.dip0.t-ipconnect.de [217.83.161.236]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 30 Aug 2023 14:57:30 +0200 Original-Received: (qmail 26122 invoked by uid 1000); 30 Aug 2023 12:57:29 -0000 Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.3; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:268704 Archived-At: Hello, Emacs. On a recent master branch Emacs: (i) emacs -Q (ii) Insert the following into *scratch*: (defmacro hash-if (condition then-form &rest else-forms) "A conditional compilation macro analogous to C's #if. Evaluate CONDITION at macro-expansion time. If it is non-nil, expand the macro to THEN-FORM. Otherwise expand it to ELSE-FORMS enclosed in a `progn' form. ELSE-FORMS may be empty." (declare (indent 2) (debug (form sexp &rest sexp))) (if (eval condition lexical-binding) then-form (cons 'progn else-forms))) (defun foo (bar) (hash-if (< emacs-major-version 19) (car bar) (cons bar bar))) (iii) Evaluate hash-if by putting point after it and doing C-x C-e. (iv) Attempt to instrument foo for edebug by putting point inside foo and doing C-u C-M-x. This throws the error: "Ignoring macroexpansion error: (void-function edebug-after)". This attempt to evaluate edebug-after is a bug. -- Alan Mackenzie (Nuremberg, Germany).