emacs-diffs
[Top][All Lists]
Advanced

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

master c964dd0820b 1/5: Revert "Avoid infinite recursion in 'window_want


From: Eli Zaretskii
Subject: master c964dd0820b 1/5: Revert "Avoid infinite recursion in 'window_wants_header_line'"
Date: Fri, 23 Jun 2023 06:52:33 -0400 (EDT)

branch: master
commit c964dd0820bfdc5bdc354145ceec868e2854dc95
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Revert "Avoid infinite recursion in 'window_wants_header_line'"
    
    This reverts commit 3de8ed09ab46b9922e15aaf0cc8884b41087c996.
    This is part of removing the recently-added feature whereby
    certain non-nil values of 'header-line-format' could signal
    that the header line shall not be displayed.  The feature is
    being reverted because its advantages are very minor, whereas
    the complications it causes are serious.
---
 src/window.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/src/window.c b/src/window.c
index fa024b6d2d8..e56dad63a70 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5469,7 +5469,6 @@ window_wants_mode_line (struct window *w)
          && WINDOW_PIXEL_HEIGHT (w) > WINDOW_FRAME_LINE_HEIGHT (w));
 }
 
-static int header_line_eval_called = 0;
 
 /**
  * null_header_line_format:
@@ -5497,18 +5496,9 @@ null_header_line_format (Lisp_Object fmt, struct frame 
*f)
        {
          if (EQ (car, QCeval))
            {
-             if (header_line_eval_called > 0)
-               return false;
-             eassert (header_line_eval_called == 0);
-             header_line_eval_called++;
              val = safe_eval_inhibit_quit (XCAR (XCDR (fmt)));
-             header_line_eval_called--;
-             eassert (header_line_eval_called == 0);
              if (!FRAME_LIVE_P (f))
-               {
-                 header_line_eval_called = 0;
-                 signal_error (":eval deleted the frame being displayed", fmt);
-               }
+               signal_error (":eval deleted the frame being displayed", fmt);
              return NILP (val);
            }
          val = find_symbol_value (car);



reply via email to

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