From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gemini Lasswell Newsgroups: gmane.emacs.bugs Subject: bug#24777: 26.0.50; Incorrect Edebug spec for map-let Date: Sat, 04 Feb 2017 15:22:35 -0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1486250655 20319 195.159.176.226 (4 Feb 2017 23:24:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Feb 2017 23:24:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) To: 24777@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 05 00:24:10 2017 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 1ca9gf-00054N-LB for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Feb 2017 00:24:09 +0100 Original-Received: from localhost ([::1]:41174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca9gl-00072A-1F for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Feb 2017 18:24:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca9gb-00071t-JC for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2017 18:24:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ca9gY-0006AU-Ep for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2017 18:24:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58171) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ca9gY-0006AE-Bs for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2017 18:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ca9gY-0004UG-6X for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2017 18:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Feb 2017 23:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24777-submit@debbugs.gnu.org id=B24777.148625059217193 (code B ref 24777); Sat, 04 Feb 2017 23:24:02 +0000 Original-Received: (at 24777) by debbugs.gnu.org; 4 Feb 2017 23:23:12 +0000 Original-Received: from localhost ([127.0.0.1]:56370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ca9fk-0004TF-6J for submit@debbugs.gnu.org; Sat, 04 Feb 2017 18:23:12 -0500 Original-Received: from aibo.runbox.com ([91.220.196.211]:51422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ca9fh-0004T6-Ub for 24777@debbugs.gnu.org; Sat, 04 Feb 2017 18:23:10 -0500 Original-Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ca9ff-0001M2-J1 for 24777@debbugs.gnu.org; Sun, 05 Feb 2017 00:23:07 +0100 Original-Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=rainbow.local) by mailfront11.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1ca9fK-0005rH-H7 for 24777@debbugs.gnu.org; Sun, 05 Feb 2017 00:22:46 +0100 In-Reply-To: (Gemini Lasswell's message of "Sun, 23 Oct 2016 10:31:34 -0700") 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:128970 Archived-At: --=-=-= Content-Type: text/plain Tags: patch Gemini Lasswell writes: > I tried replacing map-let's debug spec with this, and it is working for me: > > (debug ((&rest &or symbolp ([form symbolp])) form body)) Here is the fixed debug spec, as a patch: --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=0001-lisp-emacs-lisp-map.el-map-let-Fix-Edebug-spec-Bug-2.patch >From 5c2b689e927d7092a25c8cdb07f6dbf75d889556 Mon Sep 17 00:00:00 2001 From: Gemini Lasswell Date: Sat, 4 Feb 2017 15:04:20 -0800 Subject: [PATCH] * lisp/emacs-lisp/map.el (map-let): Fix Edebug spec (Bug#24777) --- lisp/emacs-lisp/map.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el index a89457e..b60f489 100644 --- a/lisp/emacs-lisp/map.el +++ b/lisp/emacs-lisp/map.el @@ -73,7 +73,8 @@ map-let KEY is an unquoted form. MAP can be a list, hash-table or array." - (declare (indent 2) (debug t)) + (declare (indent 2) + (debug ((&rest &or symbolp ([form symbolp])) form body))) `(pcase-let ((,(map--make-pcase-patterns keys) ,map)) ,@body)) -- 2.10.1 --=-=-=--