GNU bug report logs - #15155
24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face

Previous Next

Package: emacs;

Reported by: Frank Fischer <frank.fischer <at> mathematik.tu-chemnitz.de>

Date: Wed, 21 Aug 2013 20:23:01 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Frank Fischer <frank.fischer <at> mathematik.tu-chemnitz.de>
Cc: monnier <at> iro.umontreal.ca, 15155 <at> debbugs.gnu.org
Subject: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has	wrong face
Date: Fri, 23 Aug 2013 09:41:01 +0300
> Date: Thu, 22 Aug 2013 22:32:46 +0200
> From: Frank Fischer <frank.fischer <at> mathematik.tu-chemnitz.de>
> Cc: monnier <at> iro.umontreal.ca, 15155 <at> debbugs.gnu.org
> 
> Am Thu, 22 Aug 2013 19:56:05 +0300
> schrieb Eli Zaretskii <eliz <at> gnu.org>:
> 
> > Can you build Emacs from the trunk?  I would like to ask you to try a
> > patch that might fix this in your use case.
> 
> Sure, I'd be happy to help ;)

Thank you.  Please try the patch below.  It should solve the problem
with the font; you will still need to make sure on the Lisp level that
the prefix has the right face, to get the color you want.

=== modified file 'src/xdisp.c'
--- src/xdisp.c	2013-08-15 16:28:42 +0000
+++ src/xdisp.c	2013-08-22 16:57:56 +0000
@@ -3915,7 +3915,9 @@ handle_face_prop (struct it *it)
 	     surrounding text, unless they specify their own
 	     faces.  */
 	  base_face_id = it->string_from_prefix_prop_p
-	    ? DEFAULT_FACE_ID
+	    ? (!NILP (Vface_remapping_alist)
+	       ? lookup_basic_face (it->f, DEFAULT_FACE_ID)
+	       : DEFAULT_FACE_ID)
 	    : underlying_face_id (it);
 	}
 





This bug report was last modified 11 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.