From unknown Tue Jun 24 10:30:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24777 <24777@debbugs.gnu.org> To: bug#24777 <24777@debbugs.gnu.org> Subject: Status: 26.0.50; Incorrect Edebug spec for map-let Reply-To: bug#24777 <24777@debbugs.gnu.org> Date: Tue, 24 Jun 2025 17:30:24 +0000 retitle 24777 26.0.50; Incorrect Edebug spec for map-let reassign 24777 emacs submitter 24777 Gemini Lasswell severity 24777 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 23 13:32:01 2016 Received: (at submit) by debbugs.gnu.org; 23 Oct 2016 17:32:01 +0000 Received: from localhost ([127.0.0.1]:49459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byMcq-0005GJ-Po for submit@debbugs.gnu.org; Sun, 23 Oct 2016 13:32:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byMco-0005Dp-L7 for submit@debbugs.gnu.org; Sun, 23 Oct 2016 13:31:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byMci-0004YR-1S for submit@debbugs.gnu.org; Sun, 23 Oct 2016 13:31:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byMch-0004YN-U6 for submit@debbugs.gnu.org; Sun, 23 Oct 2016 13:31:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byMcg-0006ht-Ah for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 13:31:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byMcd-0004XB-5B for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 13:31:50 -0400 Received: from aibo.runbox.com ([91.220.196.211]:44015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byMcc-0004Wt-TW for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 13:31:47 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1byMca-0008Ev-Uc for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 19:31:45 +0200 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=rainbow.local) by mailfront12.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1byMcT-00047R-9Z for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 19:31:37 +0200 From: Gemini Lasswell To: bug-gnu-emacs@gnu.org Subject: 26.0.50; Incorrect Edebug spec for map-let Date: Sun, 23 Oct 2016 10:31:34 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Edebug throws an error if you try to instrument a use of map-let. To reproduce, enter the following code into *scratch* (using emacs -Q if you like): (require 'map) (defun map-bug (tag map) (map-let ((tag a) ('spam b) bar) map (message "%s %s %s" a b bar))) (map-bug 'foo '((foo . 0) (bar . 1) (spam . 2))) Evaluating this code normally produces the message "0 2 1" as expected. But position the cursor inside the definition of map-bug and use C-u C-M-x and you will receive the error Invalid read syntax: "Expected lambda expression". I tried replacing map-let's debug spec with this, and it is working for me: (debug ((&rest &or symbolp ([form symbolp])) form body)) In GNU Emacs 26.0.50.10 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G1004)) of 2016-10-22 built on rainbow.local Repository revision: f577b8efec324afc80aa4308efbfa40dcce30bbf Windowing system distributor 'Apple', version 10.3.1404 Recent messages: next-line: End of buffer map-bug 0 2 1 "0 2 1" map-bug 0 2 1 "0 2 1" 0 2 1 "0 2 1" edebug-syntax-error: Invalid read syntax: "Expected lambda expression" Configured using: 'configure --with-ns --disable-ns-self-contained' Configured features: JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t global-undo-tree-mode: t undo-tree-mode: t diff-auto-refine-mode: t ivy-mode: t buffer-face-mode: t yas-global-mode: t yas-minor-mode: t pyvenv-mode: t shell-dirtrack-mode: t nameless-mode: t beacon-mode: t rainbow-mode: t column-enforce-mode: t volatile-highlights-mode: t region-state-mode: t ws-butler-global-mode: t ws-butler-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-global-strict-mode: t smartparens-strict-mode: t smartparens-mode: t which-key-mode: t modalka-mode: t recentf-mode: t global-auto-revert-mode: t winner-mode: t display-time-mode: t savehist-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (visual-regexp nnir smiley gnus-cite gnus-async gnus-bcklg gnus-ml disp-table nndraft nnmh nnfolder utf-7 gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus nnheader two-column iso-transl epa-file mailalias qp shadow sort mail-extr emacsbug highlight-symbol locate magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert magit-process magit-popup magit-mode magit-git crm magit-section magit-utils git-commit log-edit message rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mailabbrev gmm-utils mailheader pcvs-util with-editor async-bytecomp async server tabify noutline outline dash-at-point undo-tree diff bug-reference add-log expand-region text-mode-expansions python-el-fgallina-expansions er-basic-expansions expand-region-core expand-region-custom ielm eieio-tests eieio-opt speedbar sb-image ezimage dframe eieio-base ert pp find-func ewoc debug eieio-compat edebug vc-git diff-mode colir flx dired dired-loaddefs counsel esh-util swiper ivy delsel ffap face-remap guess-style smtpmail sendmail mail-utils yasnippet highlight-indentation flymake company help-fns radix-tree elpy pyvenv elpy-refactor smartparens-python python tramp-sh tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec json map grep compile files-x cus-edit virtualenvwrapper gud comint nameless lisp-mnt ace-window avy beacon smex ido deft debbugs soap-client mm-decode mm-bodies mm-encode warnings rng-xsd rng-dt rng-util xsd-regexp xml rainbow-mode ansi-color color s hydra lv column-enforce-mode etags xref project volatile-highlights region-state ws-butler smartparens-config smartparens thingatpt dash which-key modalka quail smart-mode-line-dark-theme smart-mode-line advice rich-minority whiteboard-theme classic-theme recentf tree-widget wid-edit autorevert filenotify winner ring time cus-start cus-load savehist cap-words superword subword use-package diminish bind-key easy-mmode finder-inf edmacro kmacro info network-stream starttls url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm subr-x puny url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap cl package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 927825 124387) (symbols 48 53130 3) (miscs 40 2761 4624) (strings 32 140638 126210) (string-bytes 1 4303454) (vectors 16 82643) (vector-slots 8 1731955 135032) (floats 8 1347 1339) (intervals 56 52014 5725) (buffers 976 62)) From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 18:23:12 2017 Received: (at 24777) by debbugs.gnu.org; 4 Feb 2017 23:23:12 +0000 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 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 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 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 From: Gemini Lasswell To: 24777@debbugs.gnu.org Subject: Re: bug#24777: 26.0.50; Incorrect Edebug spec for map-let References: Date: Sat, 04 Feb 2017 15:22:35 -0800 In-Reply-To: (Gemini Lasswell's message of "Sun, 23 Oct 2016 10:31:34 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24777 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 24 11:47:02 2017 Received: (at 24777-done) by debbugs.gnu.org; 24 Oct 2017 15:47:02 +0000 Received: from localhost ([127.0.0.1]:60055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e71Py-0001T9-Ne for submit@debbugs.gnu.org; Tue, 24 Oct 2017 11:47:02 -0400 Received: from aibo.runbox.com ([91.220.196.211]:53518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e71Px-0001Sk-ER for 24777-done@debbugs.gnu.org; Tue, 24 Oct 2017 11:47:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From; bh=FPEMPeIiw4Hw2V3WVIsVo+RUR+5KHCEt2m+OWRWezwM=; b=BoPuWZtvShMss7UPYcB8oLvN6Zz1vFD+Bo45Lr4YH3+vlFOiS1J2vQYISxZfIx/UKONTubGGf+ YCN7ZxhDhI32kADjbzOZBNeUz6GxDICymbRwBR2TXcG9z9LTUVwUITamdArj2O8r9tGqQ9stcvp8U 8M4lFFZir7aUELmQUbVrx48w9m9iuf8bY9lHo/syPTzJtAG+oRf4/97+/30hpI23VthaMOAtRltBc Lf9Rttf3xcXScveCXfOHKUkgNoaXNN55klr4yL9B/zBvhaaEGbjfhyGdgMhTx4ArQh1tKAqzNQUtY qnVAfNMXwCy9siHZw8Pg/ULo9roBHOwmbatxg==; Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1e71Pu-0001FN-V3 for 24777-done@debbugs.gnu.org; Tue, 24 Oct 2017 17:46:59 +0200 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=chinook) by mailfront12.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1e71Pk-0006bZ-OE for 24777-done@debbugs.gnu.org; Tue, 24 Oct 2017 17:46:49 +0200 From: Gemini Lasswell To: 24777-done@debbugs.gnu.org Subject: Re: bug#24777: 26.0.50; Incorrect Edebug spec for map-let References: Date: Tue, 24 Oct 2017 08:46:46 -0700 In-Reply-To: (Gemini Lasswell's message of "Sat, 04 Feb 2017 15:22:35 -0800") Message-ID: <87d15csg49.fsf@runbox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24777-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >> I tried replacing map-let's debug spec with this, and it is working for me: >> >> (debug ((&rest &or symbolp ([form symbolp])) form body)) This is now fixed in emacs-26. From unknown Tue Jun 24 10:30:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 22 Nov 2017 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator