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

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

bug#57065: 29.0.50; Double evaluation in `c-make-no-parens-syntax-table`


From: Lars Ingebrigtsen
Subject: bug#57065: 29.0.50; Double evaluation in `c-make-no-parens-syntax-table`
Date: Tue, 09 Aug 2022 20:29:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> The patch below seems to be necessary to avoid a double-evaluation.
> This can be seen if you do something like
>
>     (c-lang-defconst c-make-mode-syntax-table my-lang #'my-fun)
>
> or
>
>     (c-lang-defconst c-make-mode-syntax-table my-lang (symbol-value 'my-fun))
>
> or
>
>     (c-lang-defconst c-make-mode-syntax-table my-lang
>       (lambda () ..))
>
> where you'll get errors like "void-variable `my-fun`" or "void-function
> `closure`.

Perhaps Alan has some comments; added to the CCs.





reply via email to

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