unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: 14574@debbugs.gnu.org
Subject: bug#14574: prog-prettify-symbols breaks font-locking
Date: Tue, 11 Jun 2013 23:29:49 +0200	[thread overview]
Message-ID: <CAAeL0SQs0P+d68rN0kJM1cqViL5ZgGOaBbOANhYypbOBr7mtNQ@mail.gmail.com> (raw)
In-Reply-To: <m261xkcqck.fsf@lifelogs.com>

[-- Attachment #1: Type: text/plain, Size: 3986 bytes --]

On Tue, Jun 11, 2013 at 11:03 PM, Ted Zlatanov <tzz@lifelogs.com> wrote:

> Thanks to you and Stefan for looking into this.

I'm seeing another problem with prog-prettify-symbols, but I haven't
filed yet a new bug because for now I can only reproduce it with my
setup.

Sometimes `lambda' gets correctly prettified, and sometimes no (see
attached image).


This is the char info for the correctly prettified lambda:

             position: 55719 of 81109 (69%), column: 11
            character: l (displayed as l) (codepoint 108, #o154, #x6c)
    preferred charset: iso-8859-15 (ISO/IEC 8859/15)
code point in charset: 0x6C
               script: latin
               syntax: w which means: word
             category: .:Base, L:Left-to-right (strong), a:ASCII,
l:Latin, r:Roman
             to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
          buffer code: #x6C
            file code: #x6C (encoded by coding system iso-latin-9-unix)
              display: composed to form "lambda" (see below)

Composed with the following character(s) "ambda" by the rule:
(?λ)
The component character(s) are displayed by these fonts (glyph codes):
 λ: uniscribe:-outline-DejaVu Sans
Mono-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1 (#x301)
See the variable `reference-point-alist' for the meaning of the rule.

Character code properties: customize what to show
  name: LATIN SMALL LETTER L
  general-category: Ll (Letter, Lowercase)
  canonical-combining-class: 0 (Spacing, split, enclosing, reordrant,
and Tibetan subjoined)
  bidi-class: L (Left-to-Right)
  decomposition: (108) ('l')
  mirrored: N
  uppercase: 76 (L)
  titlecase: 76 (L)

There are text properties here:
  charset              iso-8859-15
  composition          [Show]
  face                 font-lock-keyword-face
  fontified            t


and this is the info for the incorrect one:

             position: 55396 of 81109 (68%), column: 11
            character: l (displayed as l) (codepoint 108, #o154, #x6c)
    preferred charset: iso-8859-15 (ISO/IEC 8859/15)
code point in charset: 0x6C
               script: latin
               syntax: w which means: word
             category: .:Base, L:Left-to-right (strong), a:ASCII,
l:Latin, r:Roman
             to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
          buffer code: #x6C
            file code: #x6C (encoded by coding system iso-latin-9-unix)
              display: composed to form "lambda" (see below)

Composed with the following character(s) "ambda" by the rule:
(?l ?a ?m ?b ?d ?a)
The component character(s) are displayed by these fonts (glyph codes):
 l: uniscribe:-outline-DejaVu Sans
Mono-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x4F)
 a: uniscribe:-outline-DejaVu Sans
Mono-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x44)
 m: uniscribe:-outline-DejaVu Sans
Mono-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x50)
 b: uniscribe:-outline-DejaVu Sans
Mono-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x45)
 d: uniscribe:-outline-DejaVu Sans
Mono-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x47)
 a: uniscribe:-outline-DejaVu Sans
Mono-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x44)
See the variable `reference-point-alist' for the meaning of the rule.

Character code properties: customize what to show
  name: LATIN SMALL LETTER L
  general-category: Ll (Letter, Lowercase)
  canonical-combining-class: 0 (Spacing, split, enclosing, reordrant,
and Tibetan subjoined)
  bidi-class: L (Left-to-Right)
  decomposition: (108) ('l')
  mirrored: N
  uppercase: 76 (L)
  titlecase: 76 (L)

There are text properties here:
  charset              iso-8859-15
  composition          [Show]
  face                 font-lock-keyword-face
  fontified            t


Adding a char before it or otherwise modifying the line makes the
lambda be correctly prettified again. Weird.

[-- Attachment #2: bug.png --]
[-- Type: image/png, Size: 6127 bytes --]

  parent reply	other threads:[~2013-06-11 21:29 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-08  4:35 bug#14574: prog-prettify-symbols breaks font-locking Juanma Barranquero
2013-06-11 18:01 ` Glenn Morris
2013-06-11 21:03   ` Ted Zlatanov
2013-06-11 21:19     ` Glenn Morris
2013-06-11 21:29     ` Juanma Barranquero [this message]
2013-06-11 21:35       ` Ted Zlatanov
2013-06-11 21:50         ` Juanma Barranquero
2013-06-11 22:41           ` Juanma Barranquero
2013-06-15  8:23           ` Ted Zlatanov
2013-06-15  8:54             ` Eli Zaretskii
2013-06-15 16:57             ` Juanma Barranquero
2013-06-15 18:43               ` Eli Zaretskii
2013-06-15 22:48                 ` Juanma Barranquero
2013-06-16  0:07                   ` Ted Zlatanov
2013-06-16  1:52                     ` Juanma Barranquero
2013-06-16  9:34                       ` Ted Zlatanov
2013-06-16 10:11                         ` Juanma Barranquero
2013-06-16 11:25                           ` Ted Zlatanov
2013-06-16 23:14                         ` Stefan Monnier
2013-06-17  2:45                           ` Eli Zaretskii
2013-06-17  2:49                             ` Juanma Barranquero
2013-06-17  7:25                               ` Ted Zlatanov
2013-06-17  9:22                                 ` Juanma Barranquero
2013-06-17 10:52                                   ` Ted Zlatanov
2013-06-17 15:00                                   ` Eli Zaretskii
2013-06-17 16:24                                     ` Juanma Barranquero
2013-06-17 16:44                                       ` Eli Zaretskii
2013-06-17 16:51                                         ` Juanma Barranquero
2013-06-17 14:44                                 ` Stefan Monnier
2013-06-16 10:03                   ` Dmitry Gutov
2013-06-16 10:12                     ` Juanma Barranquero
2013-06-16 16:14                       ` Eli Zaretskii
2013-06-16 16:18                         ` Juanma Barranquero
2013-06-16 16:36                           ` Eli Zaretskii
2013-06-16 23:16                     ` Stefan Monnier
2013-06-12  2:54         ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAeL0SQs0P+d68rN0kJM1cqViL5ZgGOaBbOANhYypbOBr7mtNQ@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=14574@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).