bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64459: 30.0.50; Edebug can't instrument certain syntax-propertize-ru


From: Stefan Monnier
Subject: bug#64459: 30.0.50; Edebug can't instrument certain syntax-propertize-rules forms
Date: Tue, 04 Jul 2023 19:45:59 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
> index d610fa005cc..002a24af18b 100644
> --- a/lisp/emacs-lisp/syntax.el
> +++ b/lisp/emacs-lisp/syntax.el
> @@ -249,11 +249,12 @@ syntax-propertize-rules
>  Note: There may be at most nine back-references in the REGEXPs of
>  all RULES in total."
>    (declare (debug (&rest &or symbolp    ;FIXME: edebug this eval step.
> -                         (form &rest
> -                               (numberp
> -                                [&or stringp ;FIXME: Use &wrap
> -                                     ("prog1" [&or stringp def-form] 
> def-body)
> -                                     def-form])))))
> +                         (def-form
> +                          &rest
> +                          (numberp
> +                           [&or stringp ;FIXME: Use &wrap
> +                                ("prog1" [&or stringp form] def-body)
> +                                form])))))
>    (let ((newrules nil))
>      (while rules
>        (if (symbolp (car rules))

No, this one introduces a regression.  Try that one:


        Stefan


diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index d610fa005cc..41db2981d8c 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -249,11 +249,12 @@ syntax-propertize-rules
 Note: There may be at most nine back-references in the REGEXPs of
 all RULES in total."
   (declare (debug (&rest &or symbolp    ;FIXME: edebug this eval step.
-                         (form &rest
-                               (numberp
-                                [&or stringp ;FIXME: Use &wrap
-                                     ("prog1" [&or stringp def-form] def-body)
-                                     def-form])))))
+                         (def-form
+                          &rest
+                          (numberp
+                           [&or stringp ;FIXME: Use &wrap
+                                ("prog1" [&or stringp def-form] def-body)
+                                def-form])))))
   (let ((newrules nil))
     (while rules
       (if (symbolp (car rules))






reply via email to

[Prev in Thread] Current Thread [Next in Thread]