Subject: bug#23651: 25.1.50; edebug-read-sexp: infinite recursion when reading backquote or comma

From: [email-masked]
Date: Sat, 25 Mar 2017 14:40:31 -0400

tags 23651 fixed
close 23651 26.1
quit

[email-masked] writes:

> Start emacs with -Q, do M-: and type "(require 'edebug)". Then write
> this in buffer "*scratch*":
>
> `1
>
> Then do M-: and type "(edebug-eval-defun)". It will give this error:
>
> "edebug-read-sexp: Lisp nesting exceeds `max-lisp-eval-depth'"
>
> (The documentation for edebug-eval-defun says that this should display
> "1" instead of giving an error).
>
> One gets the same error when the buffer contains this instead:
>
> ,1
>
> This is caused by an endless recursion in edebug-read-sexp which
> apparently can be fixed like this:

Pushed to master [1: 5f6ef7cba8].

1: 2017-03-25 14:38:29 -0400 5f6ef7cba8200d19198e42a9a76fef1618b5f233
  Stop edebug getting stuck on backquote (Bug#23651)