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/msdos.c | |
| 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/msdos.c')
| -rw-r--r-- | src/msdos.c | 10 |
1 files changed, 5 insertions, 5 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); |