# HG changeset patch # User Gerd Moellmann # Date 976621094 0 # Node ID 329225ae6b616bc4d3c9f5192ac42933f94205ff # Parent 0cb6f08c40bda52603c9bc543a3742c6f4051d61 (Fx_hide_tip): Simplified. diff -r 0cb6f08c40bd -r 329225ae6b61 src/xfns.c --- a/src/xfns.c Tue Dec 12 10:38:08 2000 +0000 +++ b/src/xfns.c Tue Dec 12 11:38:14 2000 +0000 @@ -10751,39 +10751,29 @@ () { int count; - Lisp_Object deleted; + Lisp_Object deleted, frame, timer; + struct gcpro gcpro1, gcpro2; /* Return quickly if nothing to do. */ - if (NILP (tip_timer) && !FRAMEP (tip_frame)) + if (NILP (tip_timer) && NILP (tip_frame)) return Qnil; + frame = tip_frame; + timer = tip_timer; + GCPRO2 (frame, timer); + tip_frame = tip_timer = deleted = Qnil; + count = BINDING_STACK_SIZE (); - deleted = Qnil; specbind (Qinhibit_redisplay, Qt); specbind (Qinhibit_quit, Qt); - if (!NILP (tip_timer)) - { - Lisp_Object tem; - struct gcpro gcpro1; - tem = tip_timer; - GCPRO1 (tem); - tip_timer = Qnil; - call1 (intern ("cancel-timer"), tem); - UNGCPRO; - } - - if (FRAMEP (tip_frame)) - { - Lisp_Object frame; - struct gcpro gcpro1; - - frame = tip_frame; - GCPRO1 (frame); - tip_frame = Qnil; + if (!NILP (timer)) + call1 (intern ("cancel-timer"), timer); + + if (FRAMEP (frame)) + { Fdelete_frame (frame, Qnil); deleted = Qt; - UNGCPRO; #ifdef USE_LUCID /* Bloodcurdling hack alert: The Lucid menu bar widget's @@ -10805,6 +10795,7 @@ #endif /* USE_LUCID */ } + UNGCPRO; return unbind_to (count, deleted); }