aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-07-21 15:38:39 +0000
committerGerd Moellmann2000-07-21 15:38:39 +0000
commit743934dbc8ff5151ebca1725e5c6c1606f4f0505 (patch)
treeb1b18a7511d767fcefe640191c6cc189cb2f2c48
parent5b2ec2d060b02041604130dc84b42e517bc84796 (diff)
downloademacs-743934dbc8ff5151ebca1725e5c6c1606f4f0505.tar.gz
emacs-743934dbc8ff5151ebca1725e5c6c1606f4f0505.zip
(note_mouse_highlight): If help-echo was found in an
overlay, use that overlay as the object in which the help was found.
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xterm.c9
2 files changed, 12 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 57f86bcf739..c174013452d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12000-07-21 Gerd Moellmann <gerd@gnu.org> 12000-07-21 Gerd Moellmann <gerd@gnu.org>
2 2
3 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
4
5 * xterm.c (note_mouse_highlight): If help-echo was found in an
6 overlay, use that overlay as the object in which the help was
7 found.
8
3 * window.c (foreach_window_1): Fix typo reversing an if-condition. 9 * window.c (foreach_window_1): Fix typo reversing an if-condition.
4 10
5 * window.c (foreach_window): Instead of a fake variable argument 11 * window.c (foreach_window): Instead of a fake variable argument
diff --git a/src/xterm.c b/src/xterm.c
index 966459952c5..309ed552b1e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6626,18 +6626,21 @@ note_mouse_highlight (f, x, y)
6626 6626
6627 /* Look for a `help-echo' property. */ 6627 /* Look for a `help-echo' property. */
6628 { 6628 {
6629 Lisp_Object help, object, position; 6629 Lisp_Object help, overlay;
6630 6630
6631 /* Check overlays first. */ 6631 /* Check overlays first. */
6632 help = Qnil; 6632 help = Qnil;
6633 for (i = 0; i < noverlays && NILP (help); ++i) 6633 for (i = 0; i < noverlays && NILP (help); ++i)
6634 help = Foverlay_get (overlay_vec[i], Qhelp_echo); 6634 {
6635 overlay = overlay_vec[i];
6636 help = Foverlay_get (overlay, Qhelp_echo);
6637 }
6635 6638
6636 if (!NILP (help)) 6639 if (!NILP (help))
6637 { 6640 {
6638 help_echo = help; 6641 help_echo = help;
6639 help_echo_window = window; 6642 help_echo_window = window;
6640 help_echo_object = w->buffer; 6643 help_echo_object = overlay;
6641 help_echo_pos = pos; 6644 help_echo_pos = pos;
6642 } 6645 }
6643 else 6646 else