Subject: Re: bug#70938: 30.0.50; Edebug appropriates overriding-terminal-local-map

From: Stephen Berman <[email-masked]>
Date: Wed, 15 May 2024 20:51:08 +0200

On Wed, 15 May 2024 17:24:24 +0200 Michael Heerdegen <[email-masked]> wrote:

> Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
> of text editors" <[email-masked]> writes:
>
>> #+begin_src emacs-lisp
>> (progn
>>   (set-transient-map (let ((m (make-sparse-keymap)))
>>                        (define-key m [?^]
>>                          (lambda () (interactive) (message "Hmm...")))
>>                        m))
>>   (let ((overriding-terminal-local-map nil))
>>     (recursive-edit)))
>> #+end_src
>
> A possible approach that seems to fix the reported bug:

I confirm your patch prevents Edebug from "appropriating"
overriding-terminal-local-map both in my test case and also in
todo-mode.el, where I first bumped into the problem.  And your analysis
of why Edebug triggered the problem seems convincing to me, too.
Thanks!

Steve Berman