unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Nick Helm <nick@tenpoint.co.nz>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "28312@debbugs.gnu.org" <28312@debbugs.gnu.org>
Subject: bug#28312: 25.2; Arabic script changes when scrolling
Date: Sun, 9 Jun 2019 23:56:22 +0000	[thread overview]
Message-ID: <m2o936qpnf.fsf@tenpoint.co.nz> (raw)
In-Reply-To: <834l52stcy.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 06 Jun 2019 17:04:13 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

> I eventually found the culprit: it turned out we sometimes stop
> examining buffer text at arbitrary positions, and don't make sure
> these positions are never in the middle of a composable character
> sequence.  I implemented a solution, the patch is below.
> Unfortunately, it makes redisplay slower in buffers with lots of
> composable characters, so I hesitate to install it.
>
> Would people please try the patch and see if Emacs is still reasonably
> responsive in buffers with Arabic text, especially when marking or
> extending the region under transient-mark-mode?  If I get enough
> positive feedback, I will install this.  TIA.

I built yesterday's master and tested with and without the patch.

With the patch applied, I can confirm that the Arabic text in HELLO no
longer changes when scrolling, either with the keyboard or mouse.
However, I noticed that it still seems to change when extending the
region over Arabic text. That is, place point on the "c" of Arabic,
C-SPC, and C-f multiple times to extend the region and notice the
graphemes change. The mouse click and release method described up-thread
also shows the same thing. 

Next, I opened a file written entirely in Arabic (~3000 words). Without
the patch, scrolling works as expected in all cases I tried. With the
patch applied, scrolling also works as expected unless pixel-scroll-mode
is active and scrolling is done with the mouse. With that mode active,
mouse scrolling introduces lag that takes 3–4 seconds to recover after
each scroll action. I would describe the lag as significant. I did not
notice the text changing when scrolling or clicking in this file.

I didn't notice any problems with setting the mark or extending the
region in any tests, other than in the HELLO file described above. 

Thank you for working on this.

Nick

  reply	other threads:[~2019-06-09 23:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-01  1:03 bug#28312: 25.2; Arabic script changes when scrolling Nick Helm
2017-09-01  6:45 ` Eli Zaretskii
2017-09-01  7:36   ` YAMAMOTO Mitsuharu
2017-09-01  8:01     ` Alexis
2017-09-01  8:16     ` Andreas Schwab
2017-09-01  8:35     ` Eli Zaretskii
2019-06-06 14:04       ` Eli Zaretskii
2019-06-09 23:56         ` Nick Helm [this message]
2019-06-10 17:27           ` Eli Zaretskii
2019-06-11 14:49             ` Eli Zaretskii
2020-08-10 14:13               ` Lars Ingebrigtsen
2017-09-01  8:16   ` Nick Helm

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=m2o936qpnf.fsf@tenpoint.co.nz \
    --to=nick@tenpoint.co.nz \
    --cc=28312@debbugs.gnu.org \
    --cc=eliz@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).