aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-05-31 21:08:41 +0300
committerEli Zaretskii2011-05-31 21:08:41 +0300
commit662b2d1a705a1d64bcdba7b4845b14eee93d0a87 (patch)
treec60946cf2f6c6052a75bad09f46fffe526e21138 /src
parent0e14fe90d816f77788f1985ce853b473b9416d3b (diff)
downloademacs-662b2d1a705a1d64bcdba7b4845b14eee93d0a87.tar.gz
emacs-662b2d1a705a1d64bcdba7b4845b14eee93d0a87.zip
src/xdisp.c (single_display_spec_string): Correct a FIXME comment.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 714c18be466..23667388b56 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4413,9 +4413,16 @@ single_display_spec_string_p (Lisp_Object prop, Lisp_Object string)
4413 prop = XCDR (prop); 4413 prop = XCDR (prop);
4414 if (!CONSP (prop)) 4414 if (!CONSP (prop))
4415 return 0; 4415 return 0;
4416 /* FIXME: We should eval the condition following `when', like 4416 /* Actually, the condition following `when' should be eval'ed,
4417 handle_single_display_spec does, and retrun zero if it 4417 like handle_single_display_spec does, and we should return
4418 evaluates to nil. */ 4418 zero if it evaluates to nil. However, this function is
4419 called only when the buffer was already displayed and some
4420 glyph in the glyph matrix was found to come from a display
4421 string. Therefore, the condition was already evaluated, and
4422 the result was non-nil, otherwise the display string wouldn't
4423 have been displayed and we would have never been called for
4424 this property. Thus, we can skip the evaluation and assume
4425 its result is non-nil. */
4419 prop = XCDR (prop); 4426 prop = XCDR (prop);
4420 } 4427 }
4421 4428