all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Anand Tamariya <atamariya@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Incorrect glyph info in describe-char
Date: Fri, 23 Jul 2021 10:45:31 +0300	[thread overview]
Message-ID: <83v9511nj8.fsf@gnu.org> (raw)
In-Reply-To: <CADm7Y4n_f6J9OO1cO89mzY8eqyPRSj5SScPh8z425aMtwe=E4Q@mail.gmail.com> (message from Anand Tamariya on Fri, 23 Jul 2021 13:06:57 +0530)

> From: Anand Tamariya <atamariya@gmail.com>
> Date: Fri, 23 Jul 2021 13:06:57 +0530
> Cc: emacs-devel@gnu.org
> 
>  And what does the below display in the original case, i.e. with Hebrew
>  points in the text:
> 
>    M-: (find-composition (point) nil nil t) RET
> 
>  when point is on the SHIN character?
> 
> (10 13 [[#<font-object "-PfEd-Linux Libertine Display O-normal-normal-normal-*-78-*-*-*-*-0-iso10646-1">
> 1513 1473 1464] 47 [0 2 1464 967 0 6 20 -5 17 [8 0 0]] [0 2 1473 976 0 24 32 52 -45 [9 0 0]] [0 2 1513 1005
> 48 2 46 44 0 nil]]) 

That's the correct font, which is unexpected: the above
find-composition call is from describe-char, so if that returns the
correct font, how come describe-char winds up reporting an incorrect
font?

Could you perhaps step in Edebug through describe-char and see what
happens to the value returned by find-composition in your case, before
the font is reported?  The call to find-composition is near the
beginning of describe-char, here:

  (interactive "d")
  (unless (buffer-live-p buffer) (setq buffer (current-buffer)))
  (let ((src-buf (current-buffer)))
    (set-buffer buffer)
    (if (>= pos (point-max))
        (error "No character follows specified position"))
    (let* ((char (char-after pos))
           (eight-bit-p (and (not enable-multibyte-characters) (>= char 128)))
           (charset (if eight-bit-p 'eight-bit
                      (or (get-text-property pos 'charset)
                          (char-charset char))))
           (composition (find-composition pos nil nil t))  <<<<<<<<<<<<<<<
           (component-chars nil)

Thanks.



  reply	other threads:[~2021-07-23  7:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22  7:02 Incorrect glyph info in describe-char Anand Tamariya
2021-07-22  7:18 ` Eli Zaretskii
2021-07-22  8:03   ` Anand Tamariya
2021-07-22  8:54     ` Eli Zaretskii
2021-07-22  9:12       ` Anand Tamariya
2021-07-22 10:06         ` Eli Zaretskii
2021-07-22 11:27           ` Eli Zaretskii
2021-07-23  5:03           ` Anand Tamariya
2021-07-23  5:52             ` Eli Zaretskii
2021-07-23  6:28               ` Eli Zaretskii
2021-07-23  6:41               ` Anand Tamariya
2021-07-23  6:58                 ` Eli Zaretskii
2021-07-23  7:36                   ` Anand Tamariya
2021-07-23  7:45                     ` Eli Zaretskii [this message]
2021-07-23  8:15                       ` Anand Tamariya
2021-07-23 10:25                         ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=83v9511nj8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=atamariya@gmail.com \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.