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#56815: 29.0.50; Isearch lazy-highlight highlights too much when truncate-lines is in effect Date: Fri, 29 Jul 2022 08:50:02 +0300 Message-ID: <83fsik8o39.fsf@gnu.org> References: <83mtct87ti.fsf@gnu.org> <865yjhc85k.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39733"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56815@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 29 07:51:31 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 1oHIuJ-000ABg-HF for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jul 2022 07:51:31 +0200 Original-Received: from localhost ([::1]:37890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHIuG-0006x6-9k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jul 2022 01:51:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHItq-0006vK-Fo for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 01:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHItq-0001ed-29 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 01:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHItp-00081l-Pw for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 01:51:01 -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, 29 Jul 2022 05:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56815 X-GNU-PR-Package: emacs Original-Received: via spool by 56815-submit@debbugs.gnu.org id=B56815.165907380330751 (code B ref 56815); Fri, 29 Jul 2022 05:51:01 +0000 Original-Received: (at 56815) by debbugs.gnu.org; 29 Jul 2022 05:50:03 +0000 Original-Received: from localhost ([127.0.0.1]:59734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHIss-0007zv-M0 for submit@debbugs.gnu.org; Fri, 29 Jul 2022 01:50:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHIso-0007zJ-Sl for 56815@debbugs.gnu.org; Fri, 29 Jul 2022 01:50:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34312) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHIsh-0001Ow-Lk; Fri, 29 Jul 2022 01:49:52 -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=FnBg9TX2vlbM7AkuZiYbESYE+xoOeQVj25u3UKzBURY=; b=lQbaxXISmcTY LViHdwEx/RJ8lFt/1/eFh3ByplO3kb7GyvghTguKPEeML1d2b3ZCnPf+OOy1mgmDjdSAY43p5Yy9x NtrT91s89IgB6Bhx6bKS7iX01Jy6qki4Rj5v98b/PZrtol4lYh04B+KGOxKzTRVMWFczpkl7NML25 F98TcEmC1U1B88S5gdcibX4DGSqLygspgW2FO3827i1FRTRGT+zR5tuwkF7TYQtdfhE283VnLybbP EBxU29CTUL9DNIhkWoY3eNbXC3P/uodDSMYycmZo98TVJ1VIc0C3tfsPDlvqxfLkQW4gs5uFg8+Xr cNikXL4dRyROLaUGva6EbA==; Original-Received: from [87.69.77.57] (port=3916 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 1oHIsg-0005Sw-Jo; Fri, 29 Jul 2022 01:49:51 -0400 In-Reply-To: <865yjhc85k.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 28 Jul 2022 23:08:23 +0300) 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:238137 Archived-At: > From: Juri Linkov > Cc: 56815@debbugs.gnu.org > Date: Thu, 28 Jul 2022 23:08:23 +0300 > > > If isearch.el cannot find a better criterion for stopping highlighting > > beyond some buffer position, it should at least use some reasonable > > fixed (or customizable) limit. Another possibility is to turn off > > lazy-highlight by default when truncate-lines is turned on. > > > > This issue is related to poor Emacs performance in buffers with very > > long lines, and its fix is essential for making Emacs more usable with > > such buffers. > > I didn't follow the new design of long lines handling. > Does it just narrow each long truncated line? I don't think it matters, because that narrowing is in effect only as long as redisplay runs. Isearch's lazy-highlight runs off a timer, not from redisplay. I think the main point here is that under truncate-lines, whether a given buffer position is or isn't visible cannot be easily deduced from just its position and the window-end position.