From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#17453: Isearch doesn't work properly with Follow Mode. Date: Sat, 31 Oct 2015 23:56:51 +0000 Message-ID: <20151031235651.GE1853__25864.4532449127$1446335783$gmane$org@acm.fritz.box> References: <20140509224458.GA4205@acm.acm> <20151029232302.GB3812@acm.fritz.box> <87h9l6627a.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1446335783 24947 80.91.229.3 (31 Oct 2015 23:56:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Oct 2015 23:56:23 +0000 (UTC) Cc: 17453@debbugs.gnu.org, Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 01 00:56:10 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 1Zsg0H-0000Ol-Kk for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 00:56:09 +0100 Original-Received: from localhost ([::1]:57396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsg0H-0008Iq-5W for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Oct 2015 19:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsg0D-0008Ih-NV for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 19:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zsg0A-0007yQ-GQ for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 19:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsg0A-0007yF-DW for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 19:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zsg0A-0003BX-30 for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2015 19:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Oct 2015 23:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17453 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17453-submit@debbugs.gnu.org id=B17453.144633572512195 (code B ref 17453); Sat, 31 Oct 2015 23:56:02 +0000 Original-Received: (at 17453) by debbugs.gnu.org; 31 Oct 2015 23:55:25 +0000 Original-Received: from localhost ([127.0.0.1]:47392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsfzY-0003Ab-M1 for submit@debbugs.gnu.org; Sat, 31 Oct 2015 19:55:24 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:30181) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsfzE-0003A9-R3 for 17453@debbugs.gnu.org; Sat, 31 Oct 2015 19:55:23 -0400 Original-Received: (qmail 98697 invoked by uid 3782); 31 Oct 2015 23:55:03 -0000 Original-Received: from acm.muc.de (p579E9C22.dip0.t-ipconnect.de [87.158.156.34]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 01 Nov 2015 00:55:03 +0100 Original-Received: (qmail 26527 invoked by uid 1000); 31 Oct 2015 23:56:51 -0000 Content-Disposition: inline In-Reply-To: <87h9l6627a.fsf@mail.linkov.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:108254 Archived-At: Hello, Juri. On Sun, Nov 01, 2015 at 01:35:53AM +0200, Juri Linkov wrote: > > If Follow Mode is not enabled, all the above functions do the Right > > Thing on the single window. > >>From another perspective, settings lazy-highlight-buffer to t > (implemented in bug#21092) and removing the current restriction of > (overlay-put ov 'window (selected-window)) will lazy-highlight matches > in all follow windows with no effort. I wasn't actually aware of that fix. There were three main problems my patch fixed: 1) Searching commands were restricted to a single follow window. This was caused by the lazy highlighting mechanism, as you say. 2) Lazy highlighting was only being done in a single window. 3) In scrolling commands, point was restricted to the singled window, rather than being able to move freely throughout all the windows. There were also some subtle things which could go wrong, in particular when the current isearch match spans two windows, and the next command causes the echo area to expand a line. This caused spurious scrolling of the windows. -- Alan Mackenzie (Nuremberg, Germany).