From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#33201: 26.1; Edebug doesn't work on closures with edebug-unwrap-results Date: 31 Oct 2018 15:06:27 -0000 Organization: muc.de e.V. Message-ID: <20181031150627.67149.qmail@mail.muc.de> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1540998319 20576 195.159.176.226 (31 Oct 2018 15:05:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2018 15:05:19 +0000 (UTC) User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.2-RELEASE-p4 (amd64)) Cc: acm@muc.de, 33201@debbugs.gnu.org To: Allen Li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 31 16:05:14 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHs3W-0005FJ-Lp for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Oct 2018 16:05:14 +0100 Original-Received: from localhost ([::1]:60144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHs5d-0008W7-4a for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Oct 2018 11:07:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHs5O-0008Uy-St for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 11:07:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHs5L-0000Fx-5e for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 11:07:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53118) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHs5G-0000Do-FY for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 11:07:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHs5G-0002n6-1J for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 11:07: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, 31 Oct 2018 15:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33201 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33201-submit@debbugs.gnu.org id=B33201.154099839010689 (code B ref 33201); Wed, 31 Oct 2018 15:07:01 +0000 Original-Received: (at 33201) by debbugs.gnu.org; 31 Oct 2018 15:06:30 +0000 Original-Received: from localhost ([127.0.0.1]:57376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHs4k-0002mL-DH for submit@debbugs.gnu.org; Wed, 31 Oct 2018 11:06:30 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:40323 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gHs4i-0002mC-FW for 33201@debbugs.gnu.org; Wed, 31 Oct 2018 11:06:29 -0400 Original-Received: (qmail 67150 invoked by uid 3782); 31 Oct 2018 15:06:27 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151861 Archived-At: Hello, Allen. In article you wrote: > Reproduce: > 1. emacs -Q > 2. Evaluate in *scratch*: > (setq edebug-unwrap-results t) > (defun foobar (x) > (funcall x)) > 3. Evaluate to confirm it works: > (foobar '(closure ((x . 5) t) nil x)) > 4. Instrument foobar (C-u C-M-x with point on defun). > 5. Evaluate: > (foobar '(closure ((x . 5) t) nil x)) > 5. Step through with SPC > Expected: > Evaluates to 5 with no error > Actual: > edebug-signal: Wrong type argument: listp, 5 > In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) > of 2018-07-05 built on juergen > Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 Yes. There is no handling for closures in 26.1's edebug. Handling for closures was added to the Emacs master branch on 2018-06-19 by Gemini Lasswell, as an incidental enhancement when introducing better backtrace handling. Your scenario above works fine in master. This fix could probably be backported to the emacs-26 branch, but how important is it? What were you actually trying to do when you uncovered this bug? -- Alan Mackenzie (Nuremberg, Germany).