]> git.eshelyaron.com Git - emacs.git/commitdiff
* frame.c (delete_frame): Avoid unnecessary 'this_f' test.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Jul 2013 19:36:23 +0000 (21:36 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Jul 2013 19:36:23 +0000 (21:36 +0200)
Fixes: debbugs:14970
src/ChangeLog
src/frame.c

index c5448fd1514fe2e04e26966a582513a22ff9f989..8d6d34a83ae35e0b6fab3c7bb78effbd176f1013 100644 (file)
@@ -1,3 +1,7 @@
+2013-07-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * frame.c (delete_frame): Avoid unnecessary 'this_f' test (Bug#14970).
+
 2013-07-28  Eli Zaretskii  <eliz@gnu.org>
 
        * w32fns.c (w32_wnd_proc) <WM_IME_STARTCOMPOSITION>: Make sure the
index 0b59b43a445f2b34e53c1b6d3f9338cf1b0c2b66..95f53569561595102b2d2c2ae385a14dbbd188a2 100644 (file)
@@ -1158,12 +1158,13 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
       FOR_EACH_FRAME (frames, this)
        {
          Lisp_Object fminiw;
-         struct frame *this_f;
 
-         if (! EQ (this, frame)
-             && (this_f = XFRAME (this))
-             && WINDOWP (fminiw = FRAME_MINIBUF_WINDOW (this_f))
-             && EQ (frame, WINDOW_FRAME (XWINDOW (fminiw))))
+         if (EQ (this, frame))
+           continue;
+
+         fminiw = FRAME_MINIBUF_WINDOW (XFRAME (this));
+
+         if (WINDOWP (fminiw) && EQ (frame, WINDOW_FRAME (XWINDOW (fminiw))))
            {
              /* If we MUST delete this frame, delete the other first.
                 But do this only if FORCE equals `noelisp'.  */