From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#10148: 24.0.91; "pending" regexp Isearch Date: Sun, 17 Apr 2022 14:27:49 +0200 Message-ID: <87bkwzao8q.fsf@gnus.org> References: <87ipm3yd6n.fsf@mail.jurta.org> <87aa7ehr9n.fsf@mail.jurta.org> <87fwh5gajc.fsf@mail.jurta.org> <87y5uxaapt.fsf@mail.jurta.org> <87zkfcspxd.fsf@mail.jurta.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3066"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 10148@debbugs.gnu.org, Stefan Monnier To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 17 14:29:32 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ng41z-0000bv-VC for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 14:29:31 +0200 Original-Received: from localhost ([::1]:41960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ng41y-0005K2-Ll for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 08:29:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng41W-0005Jl-MM for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 08:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ng41W-000612-Dx for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 08:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ng41W-0000Bn-9I for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 08:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Apr 2022 12:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10148 X-GNU-PR-Package: emacs Original-Received: via spool by 10148-submit@debbugs.gnu.org id=B10148.1650198487650 (code B ref 10148); Sun, 17 Apr 2022 12:29:02 +0000 Original-Received: (at 10148) by debbugs.gnu.org; 17 Apr 2022 12:28:07 +0000 Original-Received: from localhost ([127.0.0.1]:35182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ng40c-0000AO-FJ for submit@debbugs.gnu.org; Sun, 17 Apr 2022 08:28:07 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:42304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ng40Y-00009e-2Q for 10148@debbugs.gnu.org; Sun, 17 Apr 2022 08:28:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JI8wSJr+G8SBQ1C3UkOB1GS6Ov/rv5L7xwYLmpaIVK0=; b=XPsORn49mRo+2lbbTfvo90wpH/ M7MlqYCRQP8s7LU4nVt9N6gjeVWxHNI2e25psI18l8Tapk+o6K7AuNbGM5l+fyM9hKwML0/fYY+K8 w6SYRvGDxqF8cgIw3/1CS9rSSPV4+ssJQ6WEnv4IEp6BlzYqmdJhSHDE+6psHsk55YCM=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ng40M-00059D-73; Sun, 17 Apr 2022 14:27:54 +0200 In-Reply-To: <87zkfcspxd.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 01 Dec 2011 09:37:34 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230045 Archived-At: Juri Linkov writes: >> In this context "pending" makes sense, yes. So the problem is that >> "pending" is also used for the other case where it does not make sense. > > This is still doubtful because when using an incomplete regexp like > `C-M-s i s \ |', "pending" still makes sense since Isearch is waiting > for the user to type an alternative search string. > > Actually this situation is already described in (info "(emacs) Regexp Search"): > > In some cases, adding characters to the regexp in an incremental > regexp search can make the cursor move back and start again. For > example, if you have searched for `foo' and you add `\|bar', the cursor > backs up in case the first `bar' precedes the first `foo'. > > So it seems that Dani just wants to add a phrase like > > and `Pending' appears in the search prompt > > to the end of the first sentence cited above in the Info manual. This was ten years ago, and "pending" is still somewhat confusing, but I've now added the text to the manual in Emacs 29. I agree that "pending" isn't very informative here, but I don't really have a suggestion for a clearer wording. In the "is*" case, we want to say "we've recalculated (and possibly added more) matches", which is unusual when isearching, so it's probably nice that we get a message for that. But something like "Recalculated" instead of "Pending" might be nice? In the \| case, we're probably waiting for more data, so "Pending" is fine there, but I don't think we really can separate between the two cases, can we? "foo\|" is a valid regexp; it's just very odd. So I dunno. Perhaps just leaving it as is is the best solution. Any opinions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no