From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69865: 29.2; Can't instrument `org-babel-exp-results' with edebug Date: Mon, 18 Mar 2024 15:22:59 +0200 Message-ID: <86msqv4qto.fsf@gnu.org> References: <87sf0o4uc3.fsf@cassou.me> <87il1kf23m.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33174"; mail-complaints-to="usenet@ciao.gmane.io" Cc: damien@cassou.me, 69865@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 18 14:41:02 2024 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 1rmDEb-0008Tk-NA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Mar 2024 14:41:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmDE7-0007kM-Cm; Mon, 18 Mar 2024 09:40:31 -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 1rmDE1-0007jA-JT for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 09:40:26 -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 1rmDE0-0008Sv-Q6 for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 09:40:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rmDEc-0004r4-EQ for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 09:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Mar 2024 13:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69865 X-GNU-PR-Package: emacs Original-Received: via spool by 69865-submit@debbugs.gnu.org id=B69865.171076921218521 (code B ref 69865); Mon, 18 Mar 2024 13:41:02 +0000 Original-Received: (at 69865) by debbugs.gnu.org; 18 Mar 2024 13:40:12 +0000 Original-Received: from localhost ([127.0.0.1]:53380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmDDn-0004of-NE for submit@debbugs.gnu.org; Mon, 18 Mar 2024 09:40:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmCxy-00049B-Fi for 69865@debbugs.gnu.org; Mon, 18 Mar 2024 09:23:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmCxF-0004hR-BT; Mon, 18 Mar 2024 09:23:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=TiaH4XHyXtmR8ewpbH/x4AXulvik5gVbJ+7bcPp33U8=; b=JHDYgOEIvE7R7NptXeNw 4uF7IUblCaT/jlNa6DcAInOj6CuxyvKAcliwjoixMrgn001tibaqQazC8eQEZh1B3dW6AcgJbIjEd wISapVHt/0LBaBO+K63/UiSEWP9NK7Zpovs0ZEDdyZ7Fbj+EletADv9pOJPlwYOmDOsH59SOHZUrj PTtgAwvFD/6npq5OJMAYL/5AGPOhXRN+TYnkHlfsop63+9i48W5meYp148+u33bAwXVln5REEUjBB an92ueXxP/NOef8SIiPUsNHkWBNQGE4Or5FfL+e3ol2A0W0FIYQomVSvL+tVuTAcZLXVEpa8WAs2c G3WTVVeo7zcIOA==; In-Reply-To: <87il1kf23m.fsf@web.de> (bug-gnu-emacs@gnu.org) 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:281804 Archived-At: > Cc: 69865@debbugs.gnu.org > Date: Mon, 18 Mar 2024 08:09:17 +0100 > From: Michael Heerdegen via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Damien Cassou writes: > > > $ emacs --batch -Q --eval "(require 'ob-exp)" --eval "(require 'edebug)" --eval "(edebug-instrument-function #'org-babel-exp-results)" > > > > Error: void-function (body) > > mapbacktrace(#f(compiled-function (evald func args flags) #)) > > debug-early-backtrace() > > debug-early(error (void-function body)) > > body((((org-babel-process-params (org-babel-merge-params (nth 2 info) `((:results \, (if silent "silent" "replace")))))) (18084 (18085 . 18109) (18115 (18116 . 18138) (18145 (18146 . 18149) (18150 . 18151) (18152 . 18156) . 18157) (18164 (18164 . 18165) (18165 (18166 (18167 . 18175) (18178 . 18179) (18179 (18180 . 18182) (18183 . 18189) (18190 . 18198) (18199 . 18208) . 18209) . 18210) . 18211) . 18211) . 18212) . 18213) . 18214)) > > … > > edebug-read-and-maybe-wrap-form1() > > edebug-read-and-maybe-wrap-form() > > edebug-read-top-level-form() > > edebug-eval-top-level-form() > > edebug-instrument-function(org-babel-exp-results) > > command-line-1(("--eval" "(require 'ob-exp)" "--eval" "(require 'edebug)" "--eval" "(edebug-instrument-function #'org-babel-exp-results)")) > > command-line() > > normal-top-level() > > Symbol’s function definition is void: body > > > > In GNU Emacs 29.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, > > cairo version 1.18.0) > > I can also reproduce this in 29.1, but not in master. Maybe this has > been fixed with one of Stefan's latest changes of Edebug. I don't think this has been fixed, because I can reproduce this variant of the bug with the current master branch: emacs -Q M-x load-file RET lisp/org/ob-exp.el RET C-x C-f lisp/org/ob-exp.el RET C-u 430 M-g g M-x edebug-defun RET => Symbol’s function definition is void: body (I also can reproduce the original recipe with the current master.)