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#56682: Fix the long lines font locking related slowdowns Date: Tue, 26 Jul 2022 15:12:24 +0300 Message-ID: <83y1wgcbtj.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <837d44jr4p.fsf@gnu.org> <83bktghrn0.fsf@gnu.org> <8a3eaeef010995a5da8d@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10383"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 26 14:13:32 2022 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 1oGJRM-0002Wg-2C for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 14:13:32 +0200 Original-Received: from localhost ([::1]:50252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGJRK-0007YT-G9 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 08:13:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGJQs-00079L-HY for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGJQs-0006GQ-8O for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGJQs-0000b9-3i for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:13: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: Tue, 26 Jul 2022 12:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.16588375492251 (code B ref 56682); Tue, 26 Jul 2022 12:13:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 26 Jul 2022 12:12:29 +0000 Original-Received: from localhost ([127.0.0.1]:52455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGJQL-0000aF-8c for submit@debbugs.gnu.org; Tue, 26 Jul 2022 08:12:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGJQJ-0000a1-TJ for 56682@debbugs.gnu.org; Tue, 26 Jul 2022 08:12:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGJQE-0006CH-Io; Tue, 26 Jul 2022 08:12:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=DNxr2zH0hpN+2el9Xv6rjwjgvWHtFg17/9UmNMtC3OM=; b=Bv9NmNQMgtTphJurvCqO u8NQ2H5QTp4MWI+cYkCi3t3bSvH7zwVT2IoxdpJFPh0XcbMJXIVnVdRKLxOtSSNg92FrulY805DGS jO3iUqttJWW7NNkvI/n1hhC+jY+aAvnrGeOGjm/m1tX3v37gseBxZadVv4X2EMiDbQLOtvmzus1Qh /B8M2T4dN4eeCCo9mA5axREM+bqtDKq0f3z5pqLMZFjJ/b/RJcSbY+risbSaIcyMkFIy/iPFJyMZf rpfm89+RAB8vj+MViWRSr4rVoe3BJe6k5XgxoggRFNn45DaKWBaQb5MqQb8S6swRtK++mJSE0LfkC uvMlh2rz36CzQA==; Original-Received: from [87.69.77.57] (port=4568 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 1oGJQB-0006I0-9R; Tue, 26 Jul 2022 08:12:22 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Tue, 26 Jul 2022 08:51:54 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:237945 Archived-At: > From: Gerd Möllmann > Cc: Eli Zaretskii , 56682@debbugs.gnu.org, > monnier@iro.umontreal.ca > Date: Tue, 26 Jul 2022 08:51:54 +0200 > > Gregory Heytings writes: > > > Hmmm... After 350e97d78e, Isearch locks Emacs with > > toggle-truncate-lines. Recipe: > > > > C-x C-f long-line.xml > > C-x x t > > C-s > > > You have to kill Emacs, C-g does not work. > > That's kind of funny :-): > > (setq isearch-lazy-highlight nil) Did you try this on master or on the feature branch? And I found that customizing lazy-highlight-max-at-a-time and lazy-highlight-interval can alleviate the problem to some extent. The reason seems to be that lazy-highlighting tries to highlight every match "in th window", but its interpretation of "in the window" seems to be "buffer position before window-end position". Which of course includes a lot of stuff in a window with truncate-lines.