aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-08-23 17:25:39 +0300
committerEli Zaretskii2013-08-23 17:25:39 +0300
commit6c6014d4cc93c33a964acd246e792e1bd73f910d (patch)
treed6909f5ae0a387495c14b727bd6dc54fce0c7c8f
parent1df7c7caf535a06ad2f3b18b5d46b987f2fa366d (diff)
downloademacs-6c6014d4cc93c33a964acd246e792e1bd73f910d.tar.gz
emacs-6c6014d4cc93c33a964acd246e792e1bd73f910d.zip
Fix bug #15155 with ignoring face remapping for strings from prefix properties.
src/xdisp.c (handle_face_prop): If the default face was remapped use the remapped face for strings from prefix properties.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c10
2 files changed, 12 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e252e4a2f4f..bee477c745a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12013-08-23 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (handle_face_prop): If the default face was remapped use
4 the remapped face for strings from prefix properties. (Bug#15155)
5
12013-08-23 Dmitry Antipov <dmantipov@yandex.ru> 62013-08-23 Dmitry Antipov <dmantipov@yandex.ru>
2 7
3 Minor cleanup for redisplay interface and few related functions. 8 Minor cleanup for redisplay interface and few related functions.
diff --git a/src/xdisp.c b/src/xdisp.c
index 53fc6d85647..ca130473c0f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3912,10 +3912,14 @@ handle_face_prop (struct it *it)
3912 /* For strings from a `display' property, use the face at 3912 /* For strings from a `display' property, use the face at
3913 IT's current buffer position as the base face to merge 3913 IT's current buffer position as the base face to merge
3914 with, so that overlay strings appear in the same face as 3914 with, so that overlay strings appear in the same face as
3915 surrounding text, unless they specify their own 3915 surrounding text, unless they specify their own faces.
3916 faces. */ 3916 For strings from wrap-prefix and line-prefix properties,
3917 use the default face, possibly remapped via
3918 Vface_remapping_alist. */
3917 base_face_id = it->string_from_prefix_prop_p 3919 base_face_id = it->string_from_prefix_prop_p
3918 ? DEFAULT_FACE_ID 3920 ? (!NILP (Vface_remapping_alist)
3921 ? lookup_basic_face (it->f, DEFAULT_FACE_ID)
3922 : DEFAULT_FACE_ID)
3919 : underlying_face_id (it); 3923 : underlying_face_id (it);
3920 } 3924 }
3921 3925