From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.bugs Subject: bug#29321: Isearch hit count Date: Mon, 20 Nov 2017 20:25:15 +0100 Message-ID: References: <<>> <<1585f8e7-72a7-497c-9879-8bf1dda3f28f@default>> <> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1511205937 4797 195.159.176.226 (20 Nov 2017 19:25:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2017 19:25:37 +0000 (UTC) Cc: 29321@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 20 20:25:31 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGrh9-0000Yo-Pl for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 20:25:28 +0100 Original-Received: from localhost ([::1]:59358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGrhF-00044P-Js for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 14:25:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGrgo-0003lk-Bi for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 14:25:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGrgk-0004iT-5S for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 14:25:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40753) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGrgj-0004iG-TJ for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 14:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eGrgj-0000lY-Lc for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 14:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Nov 2017 19:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29321-submit@debbugs.gnu.org id=B29321.15112058762903 (code B ref 29321); Mon, 20 Nov 2017 19:25:01 +0000 Original-Received: (at 29321) by debbugs.gnu.org; 20 Nov 2017 19:24:36 +0000 Original-Received: from localhost ([127.0.0.1]:49434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGrgK-0000kl-0h for submit@debbugs.gnu.org; Mon, 20 Nov 2017 14:24:36 -0500 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:49196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGrgH-0000kW-Jq for 29321@debbugs.gnu.org; Mon, 20 Nov 2017 14:24:34 -0500 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 5A72F225CC for <29321@debbugs.gnu.org>; Mon, 20 Nov 2017 19:17:11 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1511205429; x=1512069430; bh=RUxMcPowytw8V LnH6YS5dzBgmiyH3Zd9PWVStuknKYo=; b=CZEdjlOi8X7zR7TEl9ngAWi7F4me/ 3MqAO1G/kSgLxn63lCpOkGiSDGjyjif/GYem4WIvnmhKOxReEK9tfdMojD59LGH6 7psjCJBWtzUFYwrB3nQxr6yRe685ubNRZYOAZPt1IRA0x4snoX4J7iZtsCPpDw3R KiK4Q8yMPXcU8o= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FXNnFgPn9464 for <29321@debbugs.gnu.org>; Mon, 20 Nov 2017 19:17:09 +0000 (UTC) Original-Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 8B27A225C1; Mon, 20 Nov 2017 19:17:09 +0000 (UTC) In-reply-to: (message from Drew Adams on Sun, 19 Nov 2017 11:06:39 -0800 (PST)) 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" Xref: news.gmane.org gmane.emacs.bugs:140160 Archived-At: > Date: Sun, 19 Nov 2017 11:06:39 -0800 (PST) > From: Drew Adams > > > > I don't think Isearch determines all of the hits at once (even > > > in just the current search direction and starting from point). > > > Instead, it searches only on demand, *incrementally*, as the > > > name suggests. > > > > Right, and that behavior is useful when doing an Isearch in, for > > example, shell buffers, where new matches for a search string might > > enter the buffer after the search begins, or in large buffers, where > > finding each match would be prohibitive. But in most other cases, > > giving some contextual information as to how many search matches are > > after or before point would be a cheap operation. > > My point was that Isearc, so far, is designed for search > only within the visible part of the buffer. All of the > possible hits in the search space are not found; hits > are found only within the visible part of the buffer > (and that is only by lazy-highlighting). > > That doesn't mean that a different search approach couldn't > be used, e.g., for a different search command. > > And it doesn't even mean that a different approach couldn't > be integrated with Isearch, e.g., by a user option or a > toggle key that switches to a find-all-search-hits approach. Sure, an interactive toggle and a corresponding defvar/defcustom to control the default behavior would be a good fit.