Mercurial > emacs
comparison src/xdisp.c @ 75317:0d8f305c19ce
(try_window): Clear mouse-face highlights first.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 20 Jan 2007 21:03:22 +0000 |
parents | 8c79fb85d31c |
children | 3d45362f1d38 |
comparison
equal
deleted
inserted
replaced
75316:40c920747b91 | 75317:0d8f305c19ce |
---|---|
13536 int check_margins; | 13536 int check_margins; |
13537 { | 13537 { |
13538 struct window *w = XWINDOW (window); | 13538 struct window *w = XWINDOW (window); |
13539 struct it it; | 13539 struct it it; |
13540 struct glyph_row *last_text_row = NULL; | 13540 struct glyph_row *last_text_row = NULL; |
13541 struct frame *f = XFRAME (w->frame); | |
13542 | |
13543 /* Clear any existing mouse-face highlights. */ | |
13544 if (FRAME_WINDOW_P (f)) | |
13545 { | |
13546 update_begin (f); | |
13547 rif->clear_window_mouse_face (w); | |
13548 update_end (f); | |
13549 } | |
13541 | 13550 |
13542 /* Make POS the new window start. */ | 13551 /* Make POS the new window start. */ |
13543 set_marker_both (w->start, Qnil, CHARPOS (pos), BYTEPOS (pos)); | 13552 set_marker_both (w->start, Qnil, CHARPOS (pos), BYTEPOS (pos)); |
13544 | 13553 |
13545 /* Mark cursor position as unknown. No overlay arrow seen. */ | 13554 /* Mark cursor position as unknown. No overlay arrow seen. */ |