From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Redisplay loop with an unicode overlay-arrow-string Date: Fri, 22 Apr 2022 13:46:26 +0300 Message-ID: <83sfq5pf99.fsf@gnu.org> References: <87o80u6ych.fsf@wavexx.thregr.org> <83a6ceqjb0.fsf@gnu.org> <87czhadt28.fsf@wavexx.thregr.org> <87mtgdigve.fsf@wavexx.thregr.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31411"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Yuri D'Elia Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 22 14:02:38 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhrzh-0007yl-L2 for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Apr 2022 14:02:37 +0200 Original-Received: from localhost ([::1]:46728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhrzg-0001Pr-KY for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Apr 2022 08:02:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhqo1-00033n-Cd for emacs-devel@gnu.org; Fri, 22 Apr 2022 06:46:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhqo0-0000da-Do; Fri, 22 Apr 2022 06:46:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Bt8oSlGuf9ljNWFi1isc02L+6E8QrG0d9jMpnwpv60M=; b=Rjselru/ZbNE tGUVk7yauuJg+nOwoiM97xo7/Tgclfi5Gdq+kXsnEDhbEC3pfcjuTAlrhLoJGCgUHZ3vLxLsODs4p 09MOtWxElyZUAUArcZxexUtZTWq0x6wdbOofGOW3Ra6v93J0peWg074zdhuhZ404H3G7q2N3VzNWy DRca7EpBXxiOCH+D3sy+bC8GtyS5787hc5YATQJOrQ8xbIC4AnCgbIfBeblinu5WzWZN+5mJ1slE0 uWMddMNPYakuN5CwRzq1Na2PCFXcae+vssmd2wRFDpVU6hXlv0MZcHYUcn5GDPHcdaWgFxZ9KK0rV onF6tEmBwdPQJ8xhHt/TSA==; Original-Received: from [87.69.77.57] (port=2871 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhqnz-0004bM-Sw; Fri, 22 Apr 2022 06:46:28 -0400 In-Reply-To: <87mtgdigve.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Fri, 22 Apr 2022 11:49:37 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288798 Archived-At: > From: Yuri D'Elia > Date: Fri, 22 Apr 2022 11:49:37 +0200 > Cc: Eli Zaretskii , 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.