aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-12 11:38:41 +0000
committerGerd Moellmann2000-12-12 11:38:41 +0000
commitc0006262e9007a4b8b5df498982b12743b072ddb (patch)
tree613223b978d69731189a95d06c49538ff7d57a58 /src
parente9a59cad3681dc2052f2fbeb737a2b03bb7af748 (diff)
downloademacs-c0006262e9007a4b8b5df498982b12743b072ddb.tar.gz
emacs-c0006262e9007a4b8b5df498982b12743b072ddb.zip
(Fx_hide_tip): Simplified.emacs-pretest-21.0.93
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xfns.c33
2 files changed, 14 insertions, 21 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0f8c6810431..e500e14ffe2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12000-12-12 Gerd Moellmann <gerd@gnu.org> 12000-12-12 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xfns.c (Fx_hide_tip): Simplified.
4
3 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use 5 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
4 GC_MAKE_GCPROS_NOOPS instead of `1'. 6 GC_MAKE_GCPROS_NOOPS instead of `1'.
5 7
diff --git a/src/xfns.c b/src/xfns.c
index 930269c738f..bd83ce671c9 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -10751,39 +10751,29 @@ Value is t is tooltip was open, nil otherwise.")
10751 () 10751 ()
10752{ 10752{
10753 int count; 10753 int count;
10754 Lisp_Object deleted; 10754 Lisp_Object deleted, frame, timer;
10755 struct gcpro gcpro1, gcpro2;
10755 10756
10756 /* Return quickly if nothing to do. */ 10757 /* Return quickly if nothing to do. */
10757 if (NILP (tip_timer) && !FRAMEP (tip_frame)) 10758 if (NILP (tip_timer) && NILP (tip_frame))
10758 return Qnil; 10759 return Qnil;
10759 10760
10761 frame = tip_frame;
10762 timer = tip_timer;
10763 GCPRO2 (frame, timer);
10764 tip_frame = tip_timer = deleted = Qnil;
10765
10760 count = BINDING_STACK_SIZE (); 10766 count = BINDING_STACK_SIZE ();
10761 deleted = Qnil;
10762 specbind (Qinhibit_redisplay, Qt); 10767 specbind (Qinhibit_redisplay, Qt);
10763 specbind (Qinhibit_quit, Qt); 10768 specbind (Qinhibit_quit, Qt);
10764 10769
10765 if (!NILP (tip_timer)) 10770 if (!NILP (timer))
10766 { 10771 call1 (intern ("cancel-timer"), timer);
10767 Lisp_Object tem;
10768 struct gcpro gcpro1;
10769 tem = tip_timer;
10770 GCPRO1 (tem);
10771 tip_timer = Qnil;
10772 call1 (intern ("cancel-timer"), tem);
10773 UNGCPRO;
10774 }
10775 10772
10776 if (FRAMEP (tip_frame)) 10773 if (FRAMEP (frame))
10777 { 10774 {
10778 Lisp_Object frame;
10779 struct gcpro gcpro1;
10780
10781 frame = tip_frame;
10782 GCPRO1 (frame);
10783 tip_frame = Qnil;
10784 Fdelete_frame (frame, Qnil); 10775 Fdelete_frame (frame, Qnil);
10785 deleted = Qt; 10776 deleted = Qt;
10786 UNGCPRO;
10787 10777
10788#ifdef USE_LUCID 10778#ifdef USE_LUCID
10789 /* Bloodcurdling hack alert: The Lucid menu bar widget's 10779 /* Bloodcurdling hack alert: The Lucid menu bar widget's
@@ -10805,6 +10795,7 @@ Value is t is tooltip was open, nil otherwise.")
10805#endif /* USE_LUCID */ 10795#endif /* USE_LUCID */
10806 } 10796 }
10807 10797
10798 UNGCPRO;
10808 return unbind_to (count, deleted); 10799 return unbind_to (count, deleted);
10809} 10800}
10810 10801