From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#56815: 29.0.50; Isearch lazy-highlight highlights too much when truncate-lines is in effect Date: Sun, 31 Jul 2022 21:21:05 +0000 Message-ID: <8c7321f2f39cf55a895b@heytings.org> References: <83mtct87ti.fsf@gnu.org> <865yjhc85k.fsf@mail.linkov.net> <83fsik8o39.fsf@gnu.org> <87r124kul6.fsf@gnus.org> <86mtcrpyzs.fsf@mail.linkov.net> <83bkt77nf9.fsf@gnu.org> <83a68r7m2d.fsf@gnu.org> <837d3v7kr9.fsf@gnu.org> <86fsih5bch.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20861"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56815@debbugs.gnu.org, Eli Zaretskii , larsi@gnus.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 31 23:22:12 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 1oIGO4-0005Dn-6N for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Jul 2022 23:22:12 +0200 Original-Received: from localhost ([::1]:60176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIGO2-0000sK-RR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Jul 2022 17:22:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIGNu-0000rs-9z for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 17:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIGNu-0006po-24 for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 17:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oIGNt-0005lc-Pa for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 17:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Jul 2022 21:22: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.165930246922109 (code B ref 56815); Sun, 31 Jul 2022 21:22:01 +0000 Original-Received: (at 56815) by debbugs.gnu.org; 31 Jul 2022 21:21:09 +0000 Original-Received: from localhost ([127.0.0.1]:38701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIGN3-0005kW-GV for submit@debbugs.gnu.org; Sun, 31 Jul 2022 17:21:09 -0400 Original-Received: from heytings.org ([95.142.160.155]:60964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIGN1-0005kO-HD for 56815@debbugs.gnu.org; Sun, 31 Jul 2022 17:21:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1659302466; bh=5Mbfwclovb1QNgYe4VUbobj9lANhtIVmx8NiyY2qXTc=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=mYKwG89mbUG38udjpxe5f0UIccr039WEvg3g3zaNyMgKQl2FZkHRsc5L426eQtosS t3WxNfhvzS5ESMyKk8iQUrrvwmZY9OopWiS9bJBIGB4X/6nqvtmmd3rl9QDt6+HFUI kDZAoyHmPZp6lY8Tr0z7o22Zha6kNarZVU9Z3p5rBHl1hCK2MEZjRu0f4UaVekL06b j6BJ6JKP8z7AoRSaV2gcxPn5IwhX96UAN2b3nC6iXR/bnTmPXnpj/FCwEsnYtGOQ2H K1UA4oTREWcTj1ZKeZUW5m3KFJnWMU/XDWNjak5y8/q/F8Qu/zgq6zrUXN8n97829/ MaRCWh21AzzXw== In-Reply-To: <86fsih5bch.fsf@mail.linkov.net> 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:238365 Archived-At: >>> And yes, if we want truncate-lines to work reasonably well, we need to >>> fix any features which behave silly in that display mode. >> >> If we want truncate-lines to work reasonably well without fixing all >> such features one-by-one, we need to fix the root cause of that >> dysfunction, which is not inside these individual features, but is the >> fact that (- (window-end) (window-start)) is huge. > > Do you think introducing the rectangular narrowing could be a more > general fix? We already have rectangular regions generalized as > non-contiguous regions. Could non-contiguous narrowing help to restrict > the accessible buffer area to the visible screen rectangle? > Yes, I think so. But I also think it would be wrong to do that. That would be an enormous change to the code (wherever we use BEGV and ZV we would have to use instead two arrays BEGV[] and ZV[]) for a microscopic use case, and it wouldn't even solve the problem completely, because the largest possible line width is limited to about 200 MB anyway (because its width in pixels is stored in an int).