From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36030: Changing the region or the point changes the way characters are displayed Date: Fri, 31 May 2019 23:02:45 +0300 Message-ID: <83blziwfx6.fsf@gnu.org> References: <5b0601b7-2d86-8516-f03f-59b313c19085@gmail.com> <83k1e6ws96.fsf@gnu.org> <816b2b4c-775d-eba9-44c2-611fd63d171e@gmail.com> <83ef4ewipq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="266404"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36030@debbugs.gnu.org To: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 31 22:04:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWnl5-00179r-H5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 May 2019 22:04:11 +0200 Original-Received: from localhost ([127.0.0.1]:48515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWnl4-0005bp-1k for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 May 2019 16:04:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWnkx-0005bR-Ot for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 16:04:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWnkw-00057u-Jd for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 16:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWnkw-00057m-G4 for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 16:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hWnkw-0002DH-9T for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 16:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 May 2019 20:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36030 X-GNU-PR-Package: emacs Original-Received: via spool by 36030-submit@debbugs.gnu.org id=B36030.15593329888397 (code B ref 36030); Fri, 31 May 2019 20:04:02 +0000 Original-Received: (at 36030) by debbugs.gnu.org; 31 May 2019 20:03:08 +0000 Original-Received: from localhost ([127.0.0.1]:36326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWnk4-0002BN-1f for submit@debbugs.gnu.org; Fri, 31 May 2019 16:03:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWnk0-0002Am-PU for 36030@debbugs.gnu.org; Fri, 31 May 2019 16:03:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWnjv-00042G-KY; Fri, 31 May 2019 16:02:59 -0400 Original-Received: from [176.228.60.248] (port=1835 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hWnjp-0005ru-Mv; Fri, 31 May 2019 16:02:55 -0400 In-reply-to: (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel on Fri, 31 May 2019 15:28:46 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159978 Archived-At: > Cc: 36030@debbugs.gnu.org > From: Clément Pit-Claudel > 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 ) (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?