From: Eli Zaretskii <eliz@gnu.org>
To: Yuri D'Elia <wavexx@thregr.org>
Cc: casouri@gmail.com, emacs-devel@gnu.org
Subject: Re: Redisplay loop with an unicode overlay-arrow-string
Date: Fri, 22 Apr 2022 13:46:26 +0300 [thread overview]
Message-ID: <83sfq5pf99.fsf@gnu.org> (raw)
In-Reply-To: <87mtgdigve.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Fri, 22 Apr 2022 11:49:37 +0200)
> From: Yuri D'Elia <wavexx@thregr.org>
> Date: Fri, 22 Apr 2022 11:49:37 +0200
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
>
> I swear I tried the unicode arrow somehow. How I did it? No idea.. it
> hangs in any way I set it now ;)).
It only hangs (well, hanged) if the characters involved use more than
one byte in its internal representation, and then only if the byte
index of some character is greater than the index of the last
characters in the string. The hang is (was) caused by
get-text-property, called by the code, signaling an error due to
invalid character index, which would then trigger another redisplay
cycle, which will then cause another error, etc. etc.
next prev parent reply other threads:[~2022-04-22 10:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 19:16 Redisplay loop with an unicode overlay-arrow-string Yuri D'Elia
2022-04-21 20:21 ` Eli Zaretskii
2022-04-21 21:25 ` Yuri D'Elia
2022-04-22 1:25 ` Yuan Fu
2022-04-22 9:49 ` Yuri D'Elia
2022-04-22 10:46 ` Eli Zaretskii [this message]
2022-04-22 6:07 ` 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
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=83sfq5pf99.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=casouri@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=wavexx@thregr.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).