From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov 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 21:14:47 +0300 Organization: LINKOV.NET Message-ID: <86mtcrpyzs.fsf@mail.linkov.net> References: <83mtct87ti.fsf@gnu.org> <865yjhc85k.fsf@mail.linkov.net> <83fsik8o39.fsf@gnu.org> <87r124kul6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31333"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 56815@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 29 20:19:47 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 1oHUaR-0007wg-03 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jul 2022 20:19:47 +0200 Original-Received: from localhost ([::1]:54456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHUaQ-0006bD-0K for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jul 2022 14:19:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHUZl-0006Pz-R3 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 14:19:15 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHUZi-0008Rx-PG for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 14:19:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHUZi-0005vO-G8 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 14:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jul 2022 18:19:02 +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.165911868222693 (code B ref 56815); Fri, 29 Jul 2022 18:19:02 +0000 Original-Received: (at 56815) by debbugs.gnu.org; 29 Jul 2022 18:18:02 +0000 Original-Received: from localhost ([127.0.0.1]:33421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHUYj-0005ti-1P for submit@debbugs.gnu.org; Fri, 29 Jul 2022 14:18:01 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:35853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHUYd-0005tM-FW for 56815@debbugs.gnu.org; Fri, 29 Jul 2022 14:18:00 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 8617020002; Fri, 29 Jul 2022 18:17:45 +0000 (UTC) In-Reply-To: <87r124kul6.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 29 Jul 2022 13:48:53 +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:238207 Archived-At: > This reminds me of something I wondered about when futzing about with > inhibiting lazy-highlights w.r.t. text covered by a `display' property > (which was fixed a different way): > > Would it be possibly to make the isearch lazy-highlight just skip the > portions of the buffer that aren't visible? Indeed what is worth trying is to add pos-visible-in-window-group-p either to isearch-filter-predicate, or directly to isearch-lazy-highlight-search. Isearch.el already has some uses of pos-visible-in-window-group-p, but currently only in isearch-update.