diff options
| author | Stefan Monnier | 2000-07-05 13:41:00 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-07-05 13:41:00 +0000 |
| commit | b7e804134a3e947c3decbb0a6b02c092be3427f7 (patch) | |
| tree | dee5fd374c4bbba0efdfb19f23f874c71ba655ea /src | |
| parent | 969f7e79eb7dd72f72e34a308ff96e427daacaf4 (diff) | |
| download | emacs-b7e804134a3e947c3decbb0a6b02c092be3427f7.tar.gz emacs-b7e804134a3e947c3decbb0a6b02c092be3427f7.zip | |
* xterm.c (note_mode_line_highlight, note_mouse_highlight)
(note_tool_bar_highlight, XTread_socket):
* msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
(dos_rawgetc):
* w32term.c (note_mode_line_highlight, note_mouse_highlight)
(note_tool_bar_highlight, w32_read_socket):
Do not gratuitously ignore non-string `help-echo' properties.
Diffstat (limited to 'src')
| -rw-r--r-- | src/msdos.c | 10 | ||||
| -rw-r--r-- | src/w32term.c | 14 | ||||
| -rw-r--r-- | src/xterm.c | 14 |
3 files changed, 19 insertions, 19 deletions
diff --git a/src/msdos.c b/src/msdos.c index 7545cd8bc6c..c34edf62009 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -1375,7 +1375,7 @@ IT_note_mode_line_highlight (struct window *w, int x, int mode_line_p) | |||
| 1375 | setting the global variable help_echo to the help string. */ | 1375 | setting the global variable help_echo to the help string. */ |
| 1376 | help = Fget_text_property (make_number (glyph->charpos), | 1376 | help = Fget_text_property (make_number (glyph->charpos), |
| 1377 | Qhelp_echo, glyph->object); | 1377 | Qhelp_echo, glyph->object); |
| 1378 | if (STRINGP (help)) | 1378 | if (!NILP (help)) |
| 1379 | help_echo = help; | 1379 | help_echo = help; |
| 1380 | } | 1380 | } |
| 1381 | } | 1381 | } |
| @@ -1623,11 +1623,11 @@ IT_note_mouse_highlight (struct frame *f, int x, int y) | |||
| 1623 | 1623 | ||
| 1624 | /* Check overlays first. */ | 1624 | /* Check overlays first. */ |
| 1625 | help = Qnil; | 1625 | help = Qnil; |
| 1626 | for (i = 0; i < noverlays && !STRINGP (help); ++i) | 1626 | for (i = 0; i < noverlays && NILP (help); ++i) |
| 1627 | help = Foverlay_get (overlay_vec[i], Qhelp_echo); | 1627 | help = Foverlay_get (overlay_vec[i], Qhelp_echo); |
| 1628 | 1628 | ||
| 1629 | /* Try text properties. */ | 1629 | /* Try text properties. */ |
| 1630 | if (!STRINGP (help) | 1630 | if (NILP (help) |
| 1631 | && ((STRINGP (glyph->object) | 1631 | && ((STRINGP (glyph->object) |
| 1632 | && glyph->charpos >= 0 | 1632 | && glyph->charpos >= 0 |
| 1633 | && glyph->charpos < XSTRING (glyph->object)->size) | 1633 | && glyph->charpos < XSTRING (glyph->object)->size) |
| @@ -1637,7 +1637,7 @@ IT_note_mouse_highlight (struct frame *f, int x, int y) | |||
| 1637 | help = Fget_text_property (make_number (glyph->charpos), | 1637 | help = Fget_text_property (make_number (glyph->charpos), |
| 1638 | Qhelp_echo, glyph->object); | 1638 | Qhelp_echo, glyph->object); |
| 1639 | 1639 | ||
| 1640 | if (STRINGP (help)) | 1640 | if (!NILP (help)) |
| 1641 | help_echo = help; | 1641 | help_echo = help; |
| 1642 | } | 1642 | } |
| 1643 | 1643 | ||
| @@ -3239,7 +3239,7 @@ dos_rawgetc () | |||
| 3239 | mouse_last_x, mouse_last_y); | 3239 | mouse_last_x, mouse_last_y); |
| 3240 | /* If the contents of the global variable help_echo has | 3240 | /* If the contents of the global variable help_echo has |
| 3241 | changed, generate a HELP_EVENT. */ | 3241 | changed, generate a HELP_EVENT. */ |
| 3242 | if (STRINGP (help_echo) || STRINGP (previous_help_echo)) | 3242 | if (!NILP (help_echo) || !NILP (previous_help_echo)) |
| 3243 | { | 3243 | { |
| 3244 | event.kind = HELP_EVENT; | 3244 | event.kind = HELP_EVENT; |
| 3245 | event.frame_or_window = Fcons (selected_frame, help_echo); | 3245 | event.frame_or_window = Fcons (selected_frame, help_echo); |
diff --git a/src/w32term.c b/src/w32term.c index 46025c6cd1f..3a8cfb8bba6 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -5801,7 +5801,7 @@ note_mode_line_highlight (w, x, mode_line_p) | |||
| 5801 | setting the global variable help_echo to the help string. */ | 5801 | setting the global variable help_echo to the help string. */ |
| 5802 | help = Fget_text_property (make_number (glyph->charpos), | 5802 | help = Fget_text_property (make_number (glyph->charpos), |
| 5803 | Qhelp_echo, glyph->object); | 5803 | Qhelp_echo, glyph->object); |
| 5804 | if (STRINGP (help)) | 5804 | if (!NILP (help)) |
| 5805 | help_echo = help; | 5805 | help_echo = help; |
| 5806 | 5806 | ||
| 5807 | /* Change the mouse pointer according to what is under X/Y. */ | 5807 | /* Change the mouse pointer according to what is under X/Y. */ |
| @@ -6060,11 +6060,11 @@ note_mouse_highlight (f, x, y) | |||
| 6060 | 6060 | ||
| 6061 | /* Check overlays first. */ | 6061 | /* Check overlays first. */ |
| 6062 | help = Qnil; | 6062 | help = Qnil; |
| 6063 | for (i = 0; i < noverlays && !STRINGP (help); ++i) | 6063 | for (i = 0; i < noverlays && NILP (help); ++i) |
| 6064 | help = Foverlay_get (overlay_vec[i], Qhelp_echo); | 6064 | help = Foverlay_get (overlay_vec[i], Qhelp_echo); |
| 6065 | 6065 | ||
| 6066 | /* Try text properties. */ | 6066 | /* Try text properties. */ |
| 6067 | if (!STRINGP (help) | 6067 | if (NILP (help) |
| 6068 | && ((STRINGP (glyph->object) | 6068 | && ((STRINGP (glyph->object) |
| 6069 | && glyph->charpos >= 0 | 6069 | && glyph->charpos >= 0 |
| 6070 | && glyph->charpos < XSTRING (glyph->object)->size) | 6070 | && glyph->charpos < XSTRING (glyph->object)->size) |
| @@ -6074,7 +6074,7 @@ note_mouse_highlight (f, x, y) | |||
| 6074 | help = Fget_text_property (make_number (glyph->charpos), | 6074 | help = Fget_text_property (make_number (glyph->charpos), |
| 6075 | Qhelp_echo, glyph->object); | 6075 | Qhelp_echo, glyph->object); |
| 6076 | 6076 | ||
| 6077 | if (STRINGP (help)) | 6077 | if (!NILP (help)) |
| 6078 | help_echo = help; | 6078 | help_echo = help; |
| 6079 | } | 6079 | } |
| 6080 | 6080 | ||
| @@ -6306,7 +6306,7 @@ note_tool_bar_highlight (f, x, y) | |||
| 6306 | w32_read_socket does the rest. */ | 6306 | w32_read_socket does the rest. */ |
| 6307 | help_echo = (XVECTOR (f->current_tool_bar_items) | 6307 | help_echo = (XVECTOR (f->current_tool_bar_items) |
| 6308 | ->contents[prop_idx + TOOL_BAR_ITEM_HELP]); | 6308 | ->contents[prop_idx + TOOL_BAR_ITEM_HELP]); |
| 6309 | if (!STRINGP (help_echo)) | 6309 | if (NILP (help_echo)) |
| 6310 | help_echo = (XVECTOR (f->current_tool_bar_items) | 6310 | help_echo = (XVECTOR (f->current_tool_bar_items) |
| 6311 | ->contents[prop_idx + TOOL_BAR_ITEM_CAPTION]); | 6311 | ->contents[prop_idx + TOOL_BAR_ITEM_CAPTION]); |
| 6312 | } | 6312 | } |
| @@ -7610,8 +7610,8 @@ w32_read_socket (sd, bufp, numchars, expected) | |||
| 7610 | 7610 | ||
| 7611 | /* If the contents of the global variable help_echo | 7611 | /* If the contents of the global variable help_echo |
| 7612 | has changed, generate a HELP_EVENT. */ | 7612 | has changed, generate a HELP_EVENT. */ |
| 7613 | if (STRINGP (help_echo) | 7613 | if (!NILP (help_echo) |
| 7614 | || STRINGP (previous_help_echo)) | 7614 | || !NILP (previous_help_echo)) |
| 7615 | { | 7615 | { |
| 7616 | Lisp_Object frame; | 7616 | Lisp_Object frame; |
| 7617 | 7617 | ||
diff --git a/src/xterm.c b/src/xterm.c index 743c7f8934d..bc13fb98ba2 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6314,7 +6314,7 @@ note_mode_line_highlight (w, x, mode_line_p) | |||
| 6314 | setting the global variable help_echo to the help string. */ | 6314 | setting the global variable help_echo to the help string. */ |
| 6315 | help = Fget_text_property (make_number (glyph->charpos), | 6315 | help = Fget_text_property (make_number (glyph->charpos), |
| 6316 | Qhelp_echo, glyph->object); | 6316 | Qhelp_echo, glyph->object); |
| 6317 | if (STRINGP (help)) | 6317 | if (!NILP (help)) |
| 6318 | help_echo = help; | 6318 | help_echo = help; |
| 6319 | 6319 | ||
| 6320 | /* Change the mouse pointer according to what is under X/Y. */ | 6320 | /* Change the mouse pointer according to what is under X/Y. */ |
| @@ -6571,11 +6571,11 @@ note_mouse_highlight (f, x, y) | |||
| 6571 | 6571 | ||
| 6572 | /* Check overlays first. */ | 6572 | /* Check overlays first. */ |
| 6573 | help = Qnil; | 6573 | help = Qnil; |
| 6574 | for (i = 0; i < noverlays && !STRINGP (help); ++i) | 6574 | for (i = 0; i < noverlays && NILP (help); ++i) |
| 6575 | help = Foverlay_get (overlay_vec[i], Qhelp_echo); | 6575 | help = Foverlay_get (overlay_vec[i], Qhelp_echo); |
| 6576 | 6576 | ||
| 6577 | /* Try text properties. */ | 6577 | /* Try text properties. */ |
| 6578 | if (!STRINGP (help) | 6578 | if (NILP (help) |
| 6579 | && ((STRINGP (glyph->object) | 6579 | && ((STRINGP (glyph->object) |
| 6580 | && glyph->charpos >= 0 | 6580 | && glyph->charpos >= 0 |
| 6581 | && glyph->charpos < XSTRING (glyph->object)->size) | 6581 | && glyph->charpos < XSTRING (glyph->object)->size) |
| @@ -6585,7 +6585,7 @@ note_mouse_highlight (f, x, y) | |||
| 6585 | help = Fget_text_property (make_number (glyph->charpos), | 6585 | help = Fget_text_property (make_number (glyph->charpos), |
| 6586 | Qhelp_echo, glyph->object); | 6586 | Qhelp_echo, glyph->object); |
| 6587 | 6587 | ||
| 6588 | if (STRINGP (help)) | 6588 | if (!NILP (help)) |
| 6589 | help_echo = help; | 6589 | help_echo = help; |
| 6590 | } | 6590 | } |
| 6591 | 6591 | ||
| @@ -6818,7 +6818,7 @@ note_tool_bar_highlight (f, x, y) | |||
| 6818 | XTread_socket does the rest. */ | 6818 | XTread_socket does the rest. */ |
| 6819 | help_echo = (XVECTOR (f->current_tool_bar_items) | 6819 | help_echo = (XVECTOR (f->current_tool_bar_items) |
| 6820 | ->contents[prop_idx + TOOL_BAR_ITEM_HELP]); | 6820 | ->contents[prop_idx + TOOL_BAR_ITEM_HELP]); |
| 6821 | if (!STRINGP (help_echo)) | 6821 | if (NILP (help_echo)) |
| 6822 | help_echo = (XVECTOR (f->current_tool_bar_items) | 6822 | help_echo = (XVECTOR (f->current_tool_bar_items) |
| 6823 | ->contents[prop_idx + TOOL_BAR_ITEM_CAPTION]); | 6823 | ->contents[prop_idx + TOOL_BAR_ITEM_CAPTION]); |
| 6824 | } | 6824 | } |
| @@ -9773,8 +9773,8 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 9773 | 9773 | ||
| 9774 | /* If the contents of the global variable help_echo | 9774 | /* If the contents of the global variable help_echo |
| 9775 | has changed, generate a HELP_EVENT. */ | 9775 | has changed, generate a HELP_EVENT. */ |
| 9776 | if (STRINGP (help_echo) | 9776 | if (!NILP (help_echo) |
| 9777 | || STRINGP (previous_help_echo)) | 9777 | || !NILP (previous_help_echo)) |
| 9778 | { | 9778 | { |
| 9779 | Lisp_Object frame; | 9779 | Lisp_Object frame; |
| 9780 | 9780 | ||