Mercurial > emacs
comparison src/xdisp.c @ 61120:8f420e73d2eb
(display_line): Allow multiple overlay arrows in window.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 29 Mar 2005 22:28:27 +0000 |
parents | 9c0af190d335 |
children | 2d12aad1548c 360860a0006f 4da4a09e8b1b |
comparison
equal
deleted
inserted
replaced
61119:cc183cb978d4 | 61120:8f420e73d2eb |
---|---|
460 | 460 |
461 static Lisp_Object Vwindow_size_change_functions; | 461 static Lisp_Object Vwindow_size_change_functions; |
462 | 462 |
463 Lisp_Object Qmenu_bar_update_hook, Vmenu_bar_update_hook; | 463 Lisp_Object Qmenu_bar_update_hook, Vmenu_bar_update_hook; |
464 | 464 |
465 /* Nonzero if overlay arrow has been displayed once in this window. */ | 465 /* Nonzero if an overlay arrow has been displayed in this window. */ |
466 | 466 |
467 static int overlay_arrow_seen; | 467 static int overlay_arrow_seen; |
468 | 468 |
469 /* Nonzero means highlight the region even in nonselected windows. */ | 469 /* Nonzero means highlight the region even in nonselected windows. */ |
470 | 470 |
15259 | 15259 |
15260 /* If the start of this line is the overlay arrow-position, then | 15260 /* If the start of this line is the overlay arrow-position, then |
15261 mark this glyph row as the one containing the overlay arrow. | 15261 mark this glyph row as the one containing the overlay arrow. |
15262 This is clearly a mess with variable size fonts. It would be | 15262 This is clearly a mess with variable size fonts. It would be |
15263 better to let it be displayed like cursors under X. */ | 15263 better to let it be displayed like cursors under X. */ |
15264 if (! overlay_arrow_seen | 15264 if ((overlay_arrow_string |
15265 && (overlay_arrow_string | 15265 = overlay_arrow_at_row (it, row, &overlay_arrow_bitmap), |
15266 = overlay_arrow_at_row (it, row, &overlay_arrow_bitmap), | 15266 !NILP (overlay_arrow_string))) |
15267 !NILP (overlay_arrow_string))) | |
15268 { | 15267 { |
15269 /* Overlay arrow in window redisplay is a fringe bitmap. */ | 15268 /* Overlay arrow in window redisplay is a fringe bitmap. */ |
15270 if (STRINGP (overlay_arrow_string)) | 15269 if (STRINGP (overlay_arrow_string)) |
15271 { | 15270 { |
15272 struct glyph_row *arrow_row | 15271 struct glyph_row *arrow_row |