GNU bug report logs - #14574
prog-prettify-symbols breaks font-locking

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Sat, 8 Jun 2013 04:36:01 UTC

Severity: normal

Found in version 24.3.50

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: Dmitry Gutov <dgutov <at> yandex.ru>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 14574 <at> debbugs.gnu.org
Subject: bug#14574: prog-prettify-symbols breaks font-locking
Date: Sun, 16 Jun 2013 14:03:24 +0400
Juanma Barranquero <lekktu <at> gmail.com> writes:

> As for the composition text property, I suppose it could be possible
> to mark the prettified text during font-locking and use some font-lock
> -hook or -function to remove it at turn-off time?

I have some custom code in my init directory that does something very
similar, and I've settled on adding `composition' to
`font-lock-extra-managed-props'. IIRC, the problem I was solving is that
otherwise removing a few chars from the composed symbol did not make it
un-composed.

Maybe we should make a font-lock-specific alias for `composition', like
`font-lock-face' is for `face', and use that.




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

Previous Next


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