Commit c0006262 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(Fx_hide_tip): Simplified.

parent e9a59cad
2000-12-12 Gerd Moellmann <>
* xfns.c (Fx_hide_tip): Simplified.
* s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
GC_MAKE_GCPROS_NOOPS instead of `1'.
......@@ -10751,39 +10751,29 @@ Value is t is tooltip was open, nil otherwise.")
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;
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);
if (!NILP (timer))
call1 (intern ("cancel-timer"), timer);
if (FRAMEP (tip_frame))
if (FRAMEP (frame))
Lisp_Object frame;
struct gcpro gcpro1;
frame = tip_frame;
GCPRO1 (frame);
tip_frame = Qnil;
Fdelete_frame (frame, Qnil);
deleted = Qt;
#ifdef USE_LUCID
/* Bloodcurdling hack alert: The Lucid menu bar widget's
......@@ -10805,6 +10795,7 @@ Value is t is tooltip was open, nil otherwise.")
#endif /* USE_LUCID */
return unbind_to (count, deleted);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment