From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Make isearch show number of invisible matches Date: Fri, 24 Jun 2022 22:19:51 +0200 Message-ID: <87bkuhiyr1.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5286"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.11; emacs 28.1.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 24 22:42:34 2022 Return-path: Envelope-to: ged-emacs-devel@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 1o4q8P-000192-HV for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Jun 2022 22:42:34 +0200 Original-Received: from localhost ([::1]:58164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4q8O-0002JC-0e for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Jun 2022 16:42:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4q3m-0006mi-7t for emacs-devel@gnu.org; Fri, 24 Jun 2022 16:37:47 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:51543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4q3k-0005GM-Ef for emacs-devel@gnu.org; Fri, 24 Jun 2022 16:37:45 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A23835C01AD for ; Fri, 24 Jun 2022 16:37:42 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 24 Jun 2022 16:37:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t= 1656103062; x=1656189462; bh=lOrcazu1IfvQGzFt3zyplnhW/9bWDbl7dNt VzhLiSQQ=; b=AXQ6KIcgPn8ylV5WXJzwfaecfbwqgRF2o6+tiCGly7O1UR1xD34 wCDvr6mwMeS/8UClTTqDDoOYRFYrma2D4WNUtmEo2d6P1w+qOj0jVB/3e2TUDHbv GbKV2JKrLRdfqrOg7n7YtIqSPw3hEDLd6PyHrHgpS0ROFYYrq+p48vs6UDs6qKsD ChMF/GYDF5prgsvdZh32/52o34z67T5KwfjWwBdjNuf0z5N6ingxZYVAsibiaJ0w +2Mc/arvfh0FlsFbTfx11SWU48LnRZzwuz7jOAEJFSJ46HYAUrRTFr+vJ0F8/DPm 3v21qveuBdyWEaj8cr7Xn0hyoUBnCPEy/8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1656103062; x= 1656189462; bh=lOrcazu1IfvQGzFt3zyplnhW/9bWDbl7dNtVzhLiSQQ=; b=U 1Iga+D9qlCt+pJnHp8tRWkuH8e/NWU2m9AeH5EXzgXngfajoYHpwPQD0aJJtjepj RJxBTymLtivf+hj6/73mPIH2pVFgXqOZFgOL0vpwoxdKDjTl86AjLQKbupvYwGlA av/uszZvvcgmuwJMlkI+1r5gOT3aKSdhDEGQcsZCTO9xbWyozCHfM3Si3EAV/3dK VVvXzYphKNDfTQe40bsVhbFgPonwVngIM4vuyKRZi5tTSqsR7vh5NdzwhJD0MRgV ppKw09+U4xAQT408VQp1zTWCASljYqjitWpEe89T9N5wHMzsnjGlH4tHlrN4xJuU AqfMoHpxzs08uvwKgsmmQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefledgudehtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtsehttdertd dtredtnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgv rhhssehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeduueeftdetgfelke ehiefhgedtledvuedtvdevudektdeiffeihffgvdfhtddufeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 24 Jun 2022 16:37:41 -0400 (EDT) Received-SPF: pass client-ip=66.111.4.27; envelope-from=joostkremers@fastmail.fm; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291569 Archived-At: Hi, The consult package has a command `consult-focus-lines` which is a bit like `keep-lines`, except that it doesn't actually delete non-matching lines from the buffer, it just hides them using overlays with an `invisible` property. Running `isearch` in such a buffer does the Right Thing, in that it doesn't try to move point to invisible matches. There's a slight hiccup, though, in the fact that the pre- or suffix shows the total number of matches in the buffer, including the ones that are not visible, so there is no way to see how many *visible* matches there are. Is it possible to add this information to the isearch pre/suffix? What would be most useful to me, would in fact be if both the total number of matches and the number of visible matches would be shown. I assume this is currently not possible, so I would like to submit this as a feature request. Thanks, Joost -- Joost Kremers Life has its moments