GNU bug report logs - #63437
30.0.50; [BUG] edebug-defun errs on widget-default-create

Previous Next

Package: emacs;

Reported by: Ruijie Yu <ruijie <at> netyu.xyz>

Date: Thu, 11 May 2023 06:06:01 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63437 in the body.
You can then email your comments to 63437 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#63437; Package emacs. (Thu, 11 May 2023 06:06:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ruijie Yu <ruijie <at> netyu.xyz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 11 May 2023 06:06:02 GMT) Full text and rfc822 format available.

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

From: Ruijie Yu <ruijie <at> netyu.xyz>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; [BUG] edebug-defun errs on widget-default-create
Date: Thu, 11 May 2023 14:04:33 +0800
[Message part 1 (text/plain, inline)]
Trying to `edebug-defun' on `widget-default-create' produces an error.

This is reproducible in today's master (see below for config) as well as
28.2 tag (same config options).

Reproducer:

    ;; -nw or not makes no difference
    $ src/emacs -Q -nw -l lisp/wid-edit.el{,}

    ;; line 1640
    C-s defun widget-default-create RET
    C-u C-M-x

Full backtrace as shown on the error is attached.

[widget-backtrace.txt (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.37, cairo version 1.17.8) of 2023-05-11 built on fw.net.yu
Repository revision: e4c8ba6c0589f1ba0ba9993c4f1e9c0821d3ca6c
Repository branch: master
System Description: Arch Linux

Configured using:
 'configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var
 --with-cairo --with-harfbuzz --with-libsystemd --with-modules
 --with-pgtk --with-native-compilation'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=fcitx
  locale-coding-system: utf-8-unix

-- 
Best,


RY

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63437; Package emacs. (Thu, 11 May 2023 09:58:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ruijie Yu <ruijie <at> netyu.xyz>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 63437 <at> debbugs.gnu.org
Subject: Re: bug#63437: 30.0.50;
 [BUG] edebug-defun errs on widget-default-create
Date: Thu, 11 May 2023 12:58:22 +0300
> Date: Thu, 11 May 2023 14:04:33 +0800
> From:  Ruijie Yu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Trying to `edebug-defun' on `widget-default-create' produces an error.
> 
> This is reproducible in today's master (see below for config) as well as
> 28.2 tag (same config options).
> 
> Reproducer:
> 
>     ;; -nw or not makes no difference
>     $ src/emacs -Q -nw -l lisp/wid-edit.el{,}
> 
>     ;; line 1640
>     C-s defun widget-default-create RET
>     C-u C-M-x
> 
> Full backtrace as shown on the error is attached.

Thanks, should be fixed now on the emacs-29 branch.

Stefan, is that the right fix?  I'm asking because the ELisp manual is
not entirely clear on this, and I see at least one more case of

   (declare (debug body))

in our tree, in benchmark.el.  Is that also a bug?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63437; Package emacs. (Thu, 18 May 2023 11:25:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: monnier <at> iro.umontreal.ca
Cc: ruijie <at> netyu.xyz, 63437 <at> debbugs.gnu.org
Subject: Re: bug#63437: 30.0.50;
 [BUG] edebug-defun errs on widget-default-create
Date: Thu, 18 May 2023 14:24:39 +0300
Ping!  Stefan, could you please chime in and answer my question below?

> Cc: 63437 <at> debbugs.gnu.org
> Date: Thu, 11 May 2023 12:58:22 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > Date: Thu, 11 May 2023 14:04:33 +0800
> > From:  Ruijie Yu via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> > 
> > Trying to `edebug-defun' on `widget-default-create' produces an error.
> > 
> > This is reproducible in today's master (see below for config) as well as
> > 28.2 tag (same config options).
> > 
> > Reproducer:
> > 
> >     ;; -nw or not makes no difference
> >     $ src/emacs -Q -nw -l lisp/wid-edit.el{,}
> > 
> >     ;; line 1640
> >     C-s defun widget-default-create RET
> >     C-u C-M-x
> > 
> > Full backtrace as shown on the error is attached.
> 
> Thanks, should be fixed now on the emacs-29 branch.
> 
> Stefan, is that the right fix?  I'm asking because the ELisp manual is
> not entirely clear on this, and I see at least one more case of
> 
>    (declare (debug body))
> 
> in our tree, in benchmark.el.  Is that also a bug?
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63437; Package emacs. (Thu, 18 May 2023 13:44:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Ruijie Yu <ruijie <at> netyu.xyz>, 63437 <at> debbugs.gnu.org
Subject: Re: bug#63437: 30.0.50; [BUG] edebug-defun errs on
 widget-default-create
Date: Thu, 18 May 2023 09:43:25 -0400
> Ping!  Stefan, could you please chime in and answer my question below?

Sorry, fell through.

> Thanks, should be fixed now on the emacs-29 branch.
> Stefan, is that the right fix?

I'd have used

   (declare (debug t))

but the

   (declare (debug (body)))

does the trick as well, yes.

> I'm asking because the ELisp manual is
> not entirely clear on this, and I see at least one more case of
>
>    (declare (debug body))
>
> in our tree, in benchmark.el.  Is that also a bug?

Yes.


        Stefan





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 18 May 2023 14:22:01 GMT) Full text and rfc822 format available.

Notification sent to Ruijie Yu <ruijie <at> netyu.xyz>:
bug acknowledged by developer. (Thu, 18 May 2023 14:22:01 GMT) Full text and rfc822 format available.

Message #19 received at 63437-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: ruijie <at> netyu.xyz, 63437-done <at> debbugs.gnu.org
Subject: Re: bug#63437: 30.0.50; [BUG] edebug-defun errs on
 widget-default-create
Date: Thu, 18 May 2023 17:21:21 +0300
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Ruijie Yu <ruijie <at> netyu.xyz>,  63437 <at> debbugs.gnu.org
> Date: Thu, 18 May 2023 09:43:25 -0400
> 
> > I'm asking because the ELisp manual is
> > not entirely clear on this, and I see at least one more case of
> >
> >    (declare (debug body))
> >
> > in our tree, in benchmark.el.  Is that also a bug?
> 
> Yes.

Thanks, fixed, and closing the bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 16 Jun 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 330 days ago.

Previous Next


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