GNU bug report logs - #24738
26.0.50; Incorrect Edebug spec for seq-let

Previous Next

Package: emacs;

Reported by: Gemini Lasswell <gazally <at> runbox.com>

Date: Wed, 19 Oct 2016 15:46:01 UTC

Severity: normal

Found in version 26.0.50

Done: Nicolas Petton <nicolas <at> petton.fr>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 24738 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Petton <nicolas <at> petton.fr>
To: Gemini Lasswell <gazally <at> runbox.com>, 24738 <at> debbugs.gnu.org
Subject: Re: bug#24738: 26.0.50; Incorrect Edebug spec for seq-let
Date: Thu, 20 Oct 2016 10:03:34 +0200
[Message part 1 (text/plain, inline)]
Gemini Lasswell <gazally <at> runbox.com> writes:

Hi Gemini,

> The Edebug spec for seq-let is incorrect, causing code that uses it to
> not work correctly while instrumented for debugging.
>
> To reproduce:
>
> 1. emacs -Q
> 2. enter the following code into *scratch*:
>
> (defun seq-let-bug ()
>   (let ((nums [1 2 3 4 5]))
>     (seq-let (a b c) nums
>       (message "a=%s b=%s c=%s" a b c))))
>
> 3. C-u C-M-x
> 4. M-: (seq-let-bug) RET
>
> Result: a=nil b=nil c=nil
> Expected result: a=1 b=2 c=3

Indeed, thanks for reporting!

>
> Changing seq-let's edebug spec to (debug (sexp form body))
> fixes this for me.

Why sexp instead of form for the first argument?

Cheers,
Nico
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 8 years and 206 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.