GNU bug report logs - #40432
27.0.90; Edebug not possible if a cl-flet has an &optional argument

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Sat, 4 Apr 2020 16:24:01 UTC

Severity: normal

Tags: confirmed, fixed

Found in version 27.0.90

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 40432 <at> debbugs.gnu.org
Subject: bug#40432: 27.0.90; Edebug not possible if a cl-flet has an &optional argument
Date: Mon, 01 Mar 2021 16:40:34 +0100
Philipp Stephani <p.stephani2 <at> gmail.com> writes:

> Insert into *scratch*:
>
> (defun foo ()
>   (cl-flet ((bar (&optional qux) qux))
>     (bar 123)))
>
> Try to edebug this function (move point into it, hit C-u C-M-x).  This
> gives an error:
>
> Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1)
>   edebug-match-&optional(((qux) (188 . 191) . 192))

I can reproduce this in Emacs 27.1, but not in Emacs 28.  This was
apparently fixed very recently by this change:

commit 2007afd21b5f6c72a7a9c15fd7c4785331f2700f
Author:     Stefan Monnier <monnier <at> iro.umontreal.ca>
AuthorDate: Sat Feb 13 16:21:53 2021 -0500

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 78 days ago.

Previous Next


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