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.bugs Subject: bug#62780: 30.0.50; Redisplay gets slow when using Org tables + show-trailing-whitespace Date: Fri, 14 Apr 2023 16:51:08 +0300 Message-ID: <83fs92fu7n.fsf@gnu.org> References: <87mt3e8d50.fsf@localhost> <83y1my8bmi.fsf@gnu.org> <87h6tm8awi.fsf@localhost> <83bkjt8t4l.fsf@gnu.org> <87bkjsf72g.fsf@localhost> <83ttxk3vt8.fsf@gnu.org> <873554f2ye.fsf@localhost> <83sfd34ztm.fsf@gnu.org> <87zg7an7lq.fsf@localhost> <83ttxig375.fsf@gnu.org> <87pm86n1au.fsf@localhost> <83pm86fz2e.fsf@gnu.org> <83mt3afy90.fsf@gnu.org> <878reumxrj.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4117"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62780@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 14 15:52:45 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pnJr3-0000qc-A7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Apr 2023 15:52:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnJqR-0005GK-0i; Fri, 14 Apr 2023 09:52:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnJqN-0005Fo-FZ for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 09:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnJqN-0001HZ-4y for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 09:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnJqM-0003jB-4H for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 09:52: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, 14 Apr 2023 13:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62780 X-GNU-PR-Package: emacs Original-Received: via spool by 62780-submit@debbugs.gnu.org id=B62780.168148028114259 (code B ref 62780); Fri, 14 Apr 2023 13:52:02 +0000 Original-Received: (at 62780) by debbugs.gnu.org; 14 Apr 2023 13:51:21 +0000 Original-Received: from localhost ([127.0.0.1]:45850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnJph-0003hv-3o for submit@debbugs.gnu.org; Fri, 14 Apr 2023 09:51:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnJpe-0003hG-VC for 62780@debbugs.gnu.org; Fri, 14 Apr 2023 09:51:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnJpZ-00017z-6p; Fri, 14 Apr 2023 09:51:13 -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=nGrlzUztodMFl2HqlYY1Pv1sy9jImBCzsd9hz55eZ3w=; b=Y4r030835Kzi 7iP+uXKuJrspibJ8mgu+LB/VO3989RU0TnUnXKQb98g/BE885X8UOeCzuuc9ixnxdQzgGYowVH8T1 M2Q0z7GwZ9/q6NVZu6CgMj6R4oESem6wA1PjtUKSi/Eyxcv2aAFm9RXkmj8Zh2+7Ju1wL7Ntzb6iE lfJmDRd8Jab//Y/9A1Jp7V4MS62/x0BcMSQXXmhCvb6iWTOd8chfXjp6kPT8AoYMeBvXJTX0GhvEb djNDTedZ/NlaqM0MBAKb+5a419GIoYWm2yknVk7uVjKcM2nyUn/JAnPa6bF5QexaaQdCQKegq+/+i wSU0TeAQcCLZ1WpHpjAvpw==; Original-Received: from [87.69.77.57] (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 1pnJpW-000272-QH; Fri, 14 Apr 2023 09:51:12 -0400 In-Reply-To: <878reumxrj.fsf@localhost> (message from Ihor Radchenko on Fri, 14 Apr 2023 12:52:32 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259915 Archived-At: > From: Ihor Radchenko > Cc: 62780@debbugs.gnu.org > Date: Fri, 14 Apr 2023 12:52:32 +0000 > > Also, I am a bit confused about the purpose of > > /* Make sure the above arbitrary limit position is not in the > middle of composable text, so we don't break compositions by > submitting the composable text to the shaper in separate > chunks. We play safe here by assuming that only SPC, TAB, > FF, and NL cannot be in some composition; in particular, most > ASCII punctuation characters could be composed into ligatures. */ > > in compute_stop_pos > > AFAIU, it tries hard to not stop in the middle of composed region. That one is mainly about automatic compositions, not static compositions. > Then, why need to fall back to 500 in the > composition_compute_stop_pos call? Because composition_compute_stop_pos is called from many other places, for other reasons.