Mercurial > emacs
changeset 35402:302fbe91e359
(Qcancel_timer): New variable.
(syms_of_xfns): Initialize and staticpro it.
(Fx_hide_tip, Fx_show_tip): Use it.
(Fx_show_tip): Make sure to set tip_timer to nil when canceling
the timer.
(toplevel): Lisp code for generating parts of syms_of_xfns removed.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 18 Jan 2001 14:48:38 +0000 |
parents | c00e94a506a2 |
children | 3e0a539a2d20 |
files | src/xfns.c |
diffstat | 1 files changed, 9 insertions(+), 38 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Thu Jan 18 14:38:45 2001 +0000 +++ b/src/xfns.c Thu Jan 18 14:48:38 2001 +0000 @@ -174,41 +174,6 @@ Lisp_Object Vx_pixel_size_width_font_regexp; -/* Evaluate this expression to rebuild the section of syms_of_xfns - that initializes and staticpros the symbols declared below. Note - that Emacs 18 has a bug that keeps C-x C-e from being able to - evaluate this expression. - -(progn - ;; Accumulate a list of the symbols we want to initialize from the - ;; declarations at the top of the file. - (goto-char (point-min)) - (search-forward "/\*&&& symbols declared here &&&*\/\n") - (let (symbol-list) - (while (looking-at "Lisp_Object \\(Q[a-z_]+\\)") - (setq symbol-list - (cons (buffer-substring (match-beginning 1) (match-end 1)) - symbol-list)) - (forward-line 1)) - (setq symbol-list (nreverse symbol-list)) - ;; Delete the section of syms_of_... where we initialize the symbols. - (search-forward "\n /\*&&& init symbols here &&&*\/\n") - (let ((start (point))) - (while (looking-at "^ Q") - (forward-line 2)) - (kill-region start (point))) - ;; Write a new symbol initialization section. - (while symbol-list - (insert (format " %s = intern (\"" (car symbol-list))) - (let ((start (point))) - (insert (substring (car symbol-list) 1)) - (subst-char-in-region start (point) ?_ ?-)) - (insert (format "\");\n staticpro (&%s);\n" (car symbol-list))) - (setq symbol-list (cdr symbol-list))))) - - */ - -/*&&& symbols declared here &&&*/ Lisp_Object Qauto_raise; Lisp_Object Qauto_lower; Lisp_Object Qbar; @@ -243,7 +208,7 @@ extern Lisp_Object Qdisplay; Lisp_Object Qscroll_bar_foreground, Qscroll_bar_background; Lisp_Object Qscreen_gamma, Qline_spacing, Qcenter; -Lisp_Object Qcompound_text; +Lisp_Object Qcompound_text, Qcancel_timer; /* The below are defined in frame.c. */ @@ -10805,7 +10770,11 @@ /* Only DX and DY have changed. */ if (!NILP (tip_timer)) - call1 (intern ("cancel-timer"), tip_timer); + { + Lisp_Object timer = tip_timer; + tip_timer = Qnil; + call1 (Qcancel_timer, timer); + } BLOCK_INPUT; compute_tip_xy (f, parms, dx, dy, &root_x, &root_y); @@ -10948,7 +10917,7 @@ specbind (Qinhibit_quit, Qt); if (!NILP (timer)) - call1 (intern ("cancel-timer"), timer); + call1 (Qcancel_timer, timer); if (FRAMEP (frame)) { @@ -11339,6 +11308,8 @@ staticpro (&Qcenter); Qcompound_text = intern ("compound-text"); staticpro (&Qcompound_text); + Qcancel_timer = intern ("cancel-timer"); + staticpro (&Qcancel_timer); /* This is the end of symbol initialization. */ /* Text property `display' should be nonsticky by default. */