From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#21092: 25.0.50; Option `lazy-highlight-max-at-a-time' does not work Date: Thu, 24 Dec 2015 02:47:15 +0200 Organization: LINKOV.NET Message-ID: <8737usbr4k.fsf@mail.linkov.net> References: <6ef534bf-ecf3-48a4-9414-46de26d911c7@default> <87oahpbxu1.fsf@mail.linkov.net> <83r3ml1ou6.fsf@gnu.org> <87h9ng4ho0.fsf@mail.linkov.net> <7d3e51a1-945f-497e-8af1-449cd4151ca1@default> <87y4grw7kx.fsf@mail.linkov.net> <719ef340-0997-40fe-b1d8-c20c2a69155e@default> <87mvx5oim0.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1450919001 27917 80.91.229.3 (24 Dec 2015 01:03:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Dec 2015 01:03:21 +0000 (UTC) To: 21092@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 24 02:03:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aBuJD-0005ZK-Iw for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Dec 2015 02:03:11 +0100 Original-Received: from localhost ([::1]:58498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBuJC-0006Fc-Tg for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Dec 2015 20:03:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBuJ7-0006BW-L8 for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2015 20:03:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBuJ4-0004Hy-F4 for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2015 20:03:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBuJ4-0004Hr-CW for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2015 20:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aBuJ4-0001vV-0u for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2015 20:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Dec 2015 01:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21092 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21092-submit@debbugs.gnu.org id=B21092.14509189257336 (code B ref 21092); Thu, 24 Dec 2015 01:03:01 +0000 Original-Received: (at 21092) by debbugs.gnu.org; 24 Dec 2015 01:02:05 +0000 Original-Received: from localhost ([127.0.0.1]:33105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBuI9-0001uG-LT for submit@debbugs.gnu.org; Wed, 23 Dec 2015 20:02:05 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:43807 helo=homiemail-a76.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBuI8-0001u1-AX for 21092@debbugs.gnu.org; Wed, 23 Dec 2015 20:02:04 -0500 Original-Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id CE2D945807B for <21092@debbugs.gnu.org>; Wed, 23 Dec 2015 17:02:03 -0800 (PST) Original-Received: from localhost.linkov.net (m83-191-222-227.cust.tele2.ee [83.191.222.227]) (Authenticated sender: jurta@jurta.org) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id 2611C458079 for <21092@debbugs.gnu.org>; Wed, 23 Dec 2015 17:02:02 -0800 (PST) In-Reply-To: <87mvx5oim0.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 02 Sep 2015 01:55:03 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110329 Archived-At: > the new =E2=80=98lazy-highlight-buffer=E2=80=99 to toggle between whole= -buffer and > screen-only implemented by this small patch: Commenting out window-local lazy-highlighting overlay in bug#17453 ;; 1000 is higher than ediff's 100+, ;; but lower than isearch main overlay's 1001 (overlay-put ov 'priority 1000) - (overlay-put ov 'face lazy-highlight-face) - (overlay-put ov 'window (selected-window)))) + (overlay-put ov 'face lazy-highlight-face))) + ;(overlay-put ov 'window (selected-window)))) produces such deficiency that when two windows are displaying different p= arts of the same buffer (without using follow-mode), sometimes lazy-highlighte= d matches are partially (i.e. not all matches) displayed in non-current window when lazy-highlighting boundary of the selected window is in the middle of other window. This causes false impression that other window i= s responsible to highlight all visible matches but fails to do so. A solution is to install the 3rd patch posted by Artur in http://debbugs.gnu.org/17453#89 that adds a new option =E2=80=98all-windo= ws=E2=80=99 to =E2=80=98isearch-lazy-highlight=E2=80=99. Then we could setq-local it to= =E2=80=98all-windows=E2=80=99 in =E2=80=98follow-mode=E2=80=99, and don't highlight matches in other wi= ndows by default (keeping its old behavior). The same solution could be applied to bug#21092, to add a new option =E2=80=98buffer=E2=80=99 to =E2=80=98isearch-lazy-highlight=E2=80=99 to l= azy-highlight the whole buffer. Then =E2=80=98follow-mode=E2=80=99 should check it, and override it with = buffer-local =E2=80=98all-windows=E2=80=99 only when it was =E2=80=98t=E2=80=99 initia= lly.