Subject: bug#70437: 30.0.50; Fail to enter the debugger when using prin1 (instead of cl-prin1)

From: Eli Zaretskii <[email-masked]>
Date: Wed, 17 Apr 2024 19:22:40 +0300

merge 70437 70436
thanks

> From: Bruno Barbier <[email-masked]>
> Date: Wed, 17 Apr 2024 18:05:45 +0200
> 
> 
> Hi,
> 
> When setting debugger-print-function to prin1, Emacs 30.0.50 may fail
> to enter the debugger.
> 
> Emacs displays something like:
> 
>     Entering debugger...
>     make-text-button: Args out of range: 67, 3000
> 
> 
> The correct behavior is to enter the debugger, with something like this:
> 
>     Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>       #f(compiled-function (&rest args) "Start a program in a subprocess.  ...
>       ...
>       make-process(:name "mandatory" :command "ls" :stderr err-buf)
> 
> The problem doesn't occur with Emacs 29.3.

This is an exact duplicate of bug#70436 that you submitted about 2.5
hours ago, so I'm merging them.