aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2012-05-11 17:05:06 +0300
committerEli Zaretskii2012-05-11 17:05:06 +0300
commit82f9b393c551853b1bea9d32ab834e1999070ab2 (patch)
tree0a987c2c47c0b87a2b1bc9fa6361425472f66f41 /src
parentd9d1dfefe13b0f0a5f5402ab57bf8d22cd040486 (diff)
downloademacs-82f9b393c551853b1bea9d32ab834e1999070ab2.tar.gz
emacs-82f9b393c551853b1bea9d32ab834e1999070ab2.zip
Fix display when left-fringe/right-fringe display spec is invalid.
src/xdisp.c (handle_single_display_spec): Return 1 for left-margin and right-margin display specs even if the spec is invalid or we are on a TTY, and thus unable to display on the fringes. That's because the text with the property will not be displayed anyway, so we need to signal to the caller that this is a "replacing" display spec. This fixes display when the spec is invalid or we are on a TTY.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/xdisp.c6
2 files changed, 13 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0d44f31fb04..9245e81a536 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12012-05-11 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (handle_single_display_spec): Return 1 for left-margin
4 and right-margin display specs even if the spec is invalid or we
5 are on a TTY, and thus unable to display on the fringes. That's
6 because the text with the property will not be displayed anyway,
7 so we need to signal to the caller that this is a "replacing"
8 display spec. This fixes display when the spec is invalid or we
9 are on a TTY.
10
12012-05-09 Paul Eggert <eggert@cs.ucla.edu> 112012-05-09 Paul Eggert <eggert@cs.ucla.edu>
2 12
3 * unexaix.c (make_hdr): Fix typo in prototype. 13 * unexaix.c (make_hdr): Fix typo in prototype.
diff --git a/src/xdisp.c b/src/xdisp.c
index cc75d386f0d..fd26853e09b 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4681,10 +4681,10 @@ handle_single_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
4681 if (!FRAME_WINDOW_P (it->f)) 4681 if (!FRAME_WINDOW_P (it->f))
4682 /* If we return here, POSITION has been advanced 4682 /* If we return here, POSITION has been advanced
4683 across the text with this property. */ 4683 across the text with this property. */
4684 return 0; 4684 return 1;
4685 } 4685 }
4686 else if (!frame_window_p) 4686 else if (!frame_window_p)
4687 return 0; 4687 return 1;
4688 4688
4689#ifdef HAVE_WINDOW_SYSTEM 4689#ifdef HAVE_WINDOW_SYSTEM
4690 value = XCAR (XCDR (spec)); 4690 value = XCAR (XCDR (spec));
@@ -4692,7 +4692,7 @@ handle_single_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
4692 || !(fringe_bitmap = lookup_fringe_bitmap (value))) 4692 || !(fringe_bitmap = lookup_fringe_bitmap (value)))
4693 /* If we return here, POSITION has been advanced 4693 /* If we return here, POSITION has been advanced
4694 across the text with this property. */ 4694 across the text with this property. */
4695 return 0; 4695 return 1;
4696 4696
4697 if (it) 4697 if (it)
4698 { 4698 {