all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Clément Pit-Claudel" <cpitclaudel@gmail.com>
Cc: 36030@debbugs.gnu.org
Subject: bug#36030: Changing the region or the point changes the way characters are displayed
Date: Fri, 31 May 2019 23:02:45 +0300	[thread overview]
Message-ID: <83blziwfx6.fsf@gnu.org> (raw)
In-Reply-To: <c364ddad-f28b-1e28-582a-718d47447faa@gmail.com> (message from Clément Pit-Claudel on Fri, 31 May 2019 15:28:46 -0400)

> Cc: 36030@debbugs.gnu.org
> From: Clément Pit-Claudel <cpitclaudel@gmail.com>
> Date: Fri, 31 May 2019 15:28:46 -0400
> 
> I see it with many other scripts.
> >
> > Which ones?  I only see this on the Arabic line, at least in "emacs -Q".
> 
> I see it with Hebrew as well, but not in emacs -Q.  With this string:
> 
>   'ՙա-ևא-תװ-ײؠ-يٮ-ٯٱ-ۓەۥ-ۦۮ-ۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴ-ߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ'
> 
> (taken from a regular expression)

So this is not at all in the HELLO buffer?  Please be sure to tell
this important detail in the future: I just spent some time trying to
reproduce the problem in HELLO.

> But if I place it at the ܒ, then run (save-excursion (goto-char <position of the beginning of the string>) (what-cursor-position t)) I see xft:-GNU -FreeSans-normal-normal-normal-*-16-*-*-*-*-0-iso10646-1 (#x509) instead.
> 
> Moving the point to a different line, the font changes again, this time to xft:-GNU -FreeMono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x4FF) 

The font doesn't change, just the glyph number reported by Emacs
changes (that's what that hex code in parentheses means).

> The rest of the what-cursor-position buffer is unchanged.
> 
> With the string 'ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽૐૠ-ૡૹଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽଡ଼-ଢ଼ୟ-', it is enough to just resize the frame to change from xft:-GNU -FreeSans-normal-normal-normal-*-16-*-*-*-*-0-iso10646-1 (#x663) to xft:-GNU -FreeSerif-normal-normal-normal-*-16-*-*-*-*-0-iso10646-1 (#x7F2) (but I had to set a timer to investigate this one, because moving the point reverted the font changes caused by resizing the frame.
> 
> Additionally, this seems to be linked to face properties.  In the what-cursor-position buffer, I see this:
> 
>   ਸ (displayed as ਸ) (codepoint 2616, #o5070, #xa38)
>   ^ using one font.
>                   ^ using a different font, with font-lock-string-face on it.
> 
> … and moving around the what-cursor-position buffer changes the second one, but not the first one.

I see none of that in "emacs -Q".  I also don't understand how
resizing the frame could cause these effects.  If the recipe is more
complicated than just copy/paste the strings you show into *scratch*,
please be sure to show the whole recipe.  E.g., where did the face
properties come from?





  reply	other threads:[~2019-05-31 20:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-31 15:21 bug#36030: Changing the region or the point changes the way characters are displayed Clément Pit-Claudel
2019-05-31 15:36 ` Eli Zaretskii
2019-05-31 17:06   ` Clément Pit-Claudel
2019-05-31 19:02     ` Eli Zaretskii
2019-05-31 19:28       ` Clément Pit-Claudel
2019-05-31 20:02         ` Eli Zaretskii [this message]
2019-05-31 20:51           ` Clément Pit-Claudel
2019-06-01  6:22             ` Eli Zaretskii
2019-06-06 14:18             ` Eli Zaretskii
2019-06-07 17:45               ` Clément Pit-Claudel
2019-06-07 19:50                 ` Eli Zaretskii
2019-06-07 21:11                   ` Clément Pit-Claudel
2019-06-08  5:54                     ` Eli Zaretskii
2019-06-10 20:32                       ` Clément Pit-Claudel
2019-06-11  2:27                         ` 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=83blziwfx6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=36030@debbugs.gnu.org \
    --cc=cpitclaudel@gmail.com \
    /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.