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, 03 Sep 2015 01:40:10 +0300 Organization: LINKOV.NET Message-ID: <87bndka1it.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 1441234769 3253 80.91.229.3 (2 Sep 2015 22:59:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Sep 2015 22:59:29 +0000 (UTC) Cc: 21092@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 03 00:59:17 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 1ZXGzo-0005O2-GE for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Sep 2015 00:59:12 +0200 Original-Received: from localhost ([::1]:42197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXGzo-0000T9-Ll for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Sep 2015 18:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXGzh-0000MQ-Ux for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2015 18:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXGze-0007RG-QB for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2015 18:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXGze-0007R4-OD for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2015 18:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZXGze-0001gx-Fk for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2015 18:59: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: Wed, 02 Sep 2015 22:59:02 +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.14412347256477 (code B ref 21092); Wed, 02 Sep 2015 22:59:02 +0000 Original-Received: (at 21092) by debbugs.gnu.org; 2 Sep 2015 22:58:45 +0000 Original-Received: from localhost ([127.0.0.1]:47038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXGzN-0001gN-8y for submit@debbugs.gnu.org; Wed, 02 Sep 2015 18:58:45 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:45401 helo=homiemail-a76.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXGzL-0001gF-7z for 21092@debbugs.gnu.org; Wed, 02 Sep 2015 18:58:44 -0400 Original-Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id 1A87E458087; Wed, 2 Sep 2015 15:58:42 -0700 (PDT) Original-Received: from localhost.linkov.net (m212-53-123-180.cust.tele2.ee [212.53.123.180]) (Authenticated sender: jurta@jurta.org) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id E5FEC458083; Wed, 2 Sep 2015 15:58:40 -0700 (PDT) In-Reply-To: (Drew Adams's message of "Tue, 1 Sep 2015 17:07:11 -0700 (PDT)") 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.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:106100 Archived-At: >> I tried to find a useful application for this feature, and finally fou= nd. > > Great. What's the application? Reducing flicker. >> > Whole buffer OR rest-of-buffer forward or backward. Au choix. >> > Both behaviors are useful. >> >> Since you can scroll up or down, highlighting the whole buffer is >> unavoidable. > > I don't understand. Can you elaborate a bit? With =E2=80=98isearch-allow-scroll=E2=80=99 you can scroll backwards to p= revious parts of the buffer that need to display highlighted matches too. >> > A second question concerns how to control whether this acts >> > only in the current search direction or in both directions. >> >> We can highlight only in the search direction because regexp >> search might match different results depending on direction. >> So you need to switch directions with =E2=80=98C-r=E2=80=99 to re-high= light >> the buffer. > > You just said that "highlighting the whole buffer is unavoidable", > so I am a bit confused. Now you seem to be saying that we can > highlight only in one direction at a time. Maybe you could > elaborate a bit here? Highlighting the whole buffer needs to be in the same direction as the current search direction. But =E2=80=98isearch-lazy-highlight-upd= ate=E2=80=99 already takes care about this. > The difference is that I did not change the occurrences of > `window-(start|end)' in `isearch-lazy-highlight-new-loop'. > I wasn't sure it was needed (not fully understanding it), > and I didn't notice a problem without it. You can see the difference when scrolling by one line with e.g. =E2=80=98scroll-down-line=E2=80=99.