]> code.delx.au - gnu-emacs/commitdiff
Avoid shadowing a global variable by a local one in frame.c.
authorEli Zaretskii <eliz@gnu.org>
Tue, 9 Oct 2012 17:58:18 +0000 (19:58 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 9 Oct 2012 17:58:18 +0000 (19:58 +0200)
 src/frame.c (delete_frame): Rename local variable 'tooltip_frame' to
 'is_tooltip_frame', to avoid confusion with its global namesake.

src/ChangeLog
src/frame.c

index 1acf2e0b5f9cf7a7d072e9f4197bff997c8a817b..ee1057bc64dd0729802bd4c5edc64323aabc0e05 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-09  Eli Zaretskii  <eliz@gnu.org>
+
+       * frame.c (delete_frame): Rename local variable 'tooltip_frame' to
+       'is_tooltip_frame', to avoid confusion with its global namesake.
+
 2012-10-08  Daniel Colascione  <dancol@dancol.org>
 
        * xdisp.c (start_hourglass): Call w32_note_current_window when
index 599d887916905c5e66ab736bdb65d3beac87d08e..017d051fc1df9ee87addc91fe810eda760e824f2 100644 (file)
@@ -1124,7 +1124,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
   struct frame *sf = SELECTED_FRAME ();
   struct kboard *kb;
 
-  int minibuffer_selected, tooltip_frame;
+  int minibuffer_selected, is_tooltip_frame;
 
   if (EQ (frame, Qnil))
     {
@@ -1176,13 +1176,13 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
        }
     }
 
-  tooltip_frame = !NILP (Fframe_parameter (frame, intern ("tooltip")));
+  is_tooltip_frame = !NILP (Fframe_parameter (frame, intern ("tooltip")));
 
   /* Run `delete-frame-functions' unless FORCE is `noelisp' or
      frame is a tooltip.  FORCE is set to `noelisp' when handling
      a disconnect from the terminal, so we don't dare call Lisp
      code.  */
-  if (NILP (Vrun_hooks) || tooltip_frame)
+  if (NILP (Vrun_hooks) || is_tooltip_frame)
     ;
   else if (EQ (force, Qnoelisp))
     pending_funcalls
@@ -1461,7 +1461,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
     }
 
   /* Cause frame titles to update--necessary if we now have just one frame.  */
-  if (!tooltip_frame)
+  if (!is_tooltip_frame)
     update_mode_lines = 1;
 
   return Qnil;