aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 8d977ea20fb..ea7945ad07e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -5848,9 +5848,9 @@ move_it_in_display_line_to (it, to_charpos, to_x, op)
5848 ((op & MOVE_TO_POS) != 0 \ 5848 ((op & MOVE_TO_POS) != 0 \
5849 && BUFFERP (it->object) \ 5849 && BUFFERP (it->object) \
5850 && IT_CHARPOS (*it) >= to_charpos \ 5850 && IT_CHARPOS (*it) >= to_charpos \
5851 && (it->method == GET_FROM_BUFFER || \ 5851 && (it->method == GET_FROM_BUFFER \
5852 (it->method == GET_FROM_DISPLAY_VECTOR && \ 5852 || (it->method == GET_FROM_DISPLAY_VECTOR \
5853 it->dpvec + it->current.dpvec_index + 1 >= it->dpend))) 5853 && it->dpvec + it->current.dpvec_index + 1 >= it->dpend)))
5854 5854
5855 5855
5856 while (1) 5856 while (1)
@@ -20774,8 +20774,10 @@ fast_find_position (w, charpos, hpos, vpos, x, y, stop)
20774 20774
20775 /* If whole rows or last part of a row came from a display overlay, 20775 /* If whole rows or last part of a row came from a display overlay,
20776 row_containing_pos will skip over such rows because their end pos 20776 row_containing_pos will skip over such rows because their end pos
20777 equals the start pos of the overlay or interval. Backtrack if we 20777 equals the start pos of the overlay or interval.
20778 have a STOP object and previous row's end glyph came from STOP. */ 20778
20779 Move back if we have a STOP object and previous row's
20780 end glyph came from STOP. */
20779 if (!NILP (stop)) 20781 if (!NILP (stop))
20780 { 20782 {
20781 struct glyph_row *prev; 20783 struct glyph_row *prev;
@@ -20783,11 +20785,11 @@ fast_find_position (w, charpos, hpos, vpos, x, y, stop)
20783 && MATRIX_ROW_END_CHARPOS (prev) == charpos 20785 && MATRIX_ROW_END_CHARPOS (prev) == charpos
20784 && prev->used[TEXT_AREA] > 0) 20786 && prev->used[TEXT_AREA] > 0)
20785 { 20787 {
20786 end = prev->glyphs[TEXT_AREA]; 20788 struct glyph *beg = prev->glyphs[TEXT_AREA];
20787 glyph = end + prev->used[TEXT_AREA]; 20789 glyph = beg + prev->used[TEXT_AREA];
20788 while (--glyph >= end 20790 while (--glyph >= beg
20789 && INTEGERP (glyph->object)); 20791 && INTEGERP (glyph->object));
20790 if (glyph < end 20792 if (glyph < beg
20791 || !EQ (stop, glyph->object)) 20793 || !EQ (stop, glyph->object))
20792 break; 20794 break;
20793 row = prev; 20795 row = prev;
@@ -22815,8 +22817,10 @@ Bind this around calls to `message' to let it take effect. */);
22815 message_truncate_lines = 0; 22817 message_truncate_lines = 0;
22816 22818
22817 DEFVAR_LISP ("menu-bar-update-hook", &Vmenu_bar_update_hook, 22819 DEFVAR_LISP ("menu-bar-update-hook", &Vmenu_bar_update_hook,
22818 doc: /* Normal hook run for clicks on menu bar, before displaying a submenu. 22820 doc: /* Normal hook run to update the menu bar definitions.
22819Can be used to update submenus whose contents should vary. */); 22821Redisplay runs this hook before it redisplays the menu bar.
22822This is used to update submenus such as Buffers,
22823whose contents depend on various data. */);
22820 Vmenu_bar_update_hook = Qnil; 22824 Vmenu_bar_update_hook = Qnil;
22821 22825
22822 DEFVAR_BOOL ("inhibit-menubar-update", &inhibit_menubar_update, 22826 DEFVAR_BOOL ("inhibit-menubar-update", &inhibit_menubar_update,