]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/eval.c (signal_or_quit): Reduce scope of `debugger_called`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 7 Mar 2025 04:18:31 +0000 (23:18 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 10:20:28 +0000 (11:20 +0100)
(cherry picked from commit 06af71fbde9378384672a99048bb56ed4ac9a834)

src/eval.c

index 9cbed4bf2f507f4328124e350ed0b5f79dbdab5a..5985786fdc557116e1a6d24c3fb8f25ae4bbf106 100644 (file)
@@ -1915,7 +1915,6 @@ signal_or_quit (Lisp_Object error_symbol, Lisp_Object data, bool continuable)
        break;
     }
 
-  bool debugger_called = false;
   if (/* Don't run the debugger for a memory-full error.
         (There is no room in memory to do that!)  */
       !oom
@@ -1929,7 +1928,7 @@ signal_or_quit (Lisp_Object error_symbol, Lisp_Object data, bool continuable)
             if requested".  */
          || EQ (clause, Qerror)))
     {
-      debugger_called
+      bool debugger_called
        = maybe_call_debugger (conditions, error);
       /* We can't return values to code which signaled an error, but we
         can continue code which has signaled a quit.  */