aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2014-11-27 18:35:27 +0200
committerEli Zaretskii2014-11-27 18:35:27 +0200
commit6b765b8facbdbb03f28028007885236601652515 (patch)
treedba78252300efba0732df3468d2ea1ce6679e112 /src
parentb3910f653938fc8625f4e0c970123e826bbf427e (diff)
downloademacs-6b765b8facbdbb03f28028007885236601652515.tar.gz
emacs-6b765b8facbdbb03f28028007885236601652515.zip
Fix bug #19201 with after-strings not being displayed.
src/xdisp.c (handle_single_display_spec): When ignoring a fringe bitmap display, reset the ignore_overlay_strings_at_pos_p flag. (next_element_from_buffer): When done with overlays, reset the ignore_overlay_strings_at_pos_p flag.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/xdisp.c12
2 files changed, 19 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 23fd46bd4cd..5ecb0220026 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12014-11-27 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (handle_single_display_spec): When ignoring a fringe
4 bitmap display, reset the ignore_overlay_strings_at_pos_p flag.
5 (next_element_from_buffer): When done with overlays, reset the
6 ignore_overlay_strings_at_pos_p flag. (Bug#19201)
7
12014-11-25 Eli Zaretskii <eliz@gnu.org> 82014-11-25 Eli Zaretskii <eliz@gnu.org>
2 9
3 * w32fns.c (Fw32_shell_execute): Convert forward slashes in 10 * w32fns.c (Fw32_shell_execute): Convert forward slashes in
diff --git a/src/xdisp.c b/src/xdisp.c
index 0558aa8099d..bd262818036 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -5106,6 +5106,11 @@ handle_single_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
5106 iterate_out_of_display_property (it); 5106 iterate_out_of_display_property (it);
5107 *position = it->position; 5107 *position = it->position;
5108 } 5108 }
5109 /* If we were to display this fringe bitmap,
5110 next_element_from_image would have reset this flag.
5111 Do the same, to avoid affecting overlays that
5112 follow. */
5113 it->ignore_overlay_strings_at_pos_p = 0;
5109 return 1; 5114 return 1;
5110 } 5115 }
5111 } 5116 }
@@ -5125,6 +5130,9 @@ handle_single_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
5125 iterate_out_of_display_property (it); 5130 iterate_out_of_display_property (it);
5126 *position = it->position; 5131 *position = it->position;
5127 } 5132 }
5133 if (it)
5134 /* Reset this flag like next_element_from_image would. */
5135 it->ignore_overlay_strings_at_pos_p = 0;
5128 return 1; 5136 return 1;
5129 } 5137 }
5130 5138
@@ -8327,6 +8335,10 @@ next_element_from_buffer (struct it *it)
8327 unsigned char *p; 8335 unsigned char *p;
8328 ptrdiff_t stop; 8336 ptrdiff_t stop;
8329 8337
8338 /* We moved to the next buffer position, so any info about
8339 previously seen overlays is no longer valid. */
8340 it->ignore_overlay_strings_at_pos_p = 0;
8341
8330 /* Maybe run the redisplay end trigger hook. Performance note: 8342 /* Maybe run the redisplay end trigger hook. Performance note:
8331 This doesn't seem to cost measurable time. */ 8343 This doesn't seem to cost measurable time. */
8332 if (it->redisplay_end_trigger_charpos 8344 if (it->redisplay_end_trigger_charpos