From unknown Sun Jun 22 07:38:52 2025 X-Loop: don@donarmstrong.com Subject: bug#380: previous-matching-history-element beef up Reply-To: jidanni@jidanni.org, 380@debbugs.gnu.org Resent-From: jidanni@jidanni.org Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 09 Jun 2008 18:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 380 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121303487115297 (code B ref -1); Mon, 09 Jun 2008 18:15:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.6 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Jun 2008 18:07:51 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m59I7lW7015291 for ; Mon, 9 Jun 2008 11:07:49 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5lmV-0004i0-LC for bug-gnu-emacs@gnu.org; Mon, 09 Jun 2008 14:07:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5lmT-0004hE-UA for bug-gnu-emacs@gnu.org; Mon, 09 Jun 2008 14:07:47 -0400 Received: from [199.232.76.173] (port=59044 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5lmT-0004hB-RT for bug-gnu-emacs@gnu.org; Mon, 09 Jun 2008 14:07:45 -0400 Received: from lax-green-bigip-5.dreamhost.com ([208.113.200.5]:60740 helo=blingymail-a2.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K5lmT-00035M-O5 for bug-gnu-emacs@gnu.org; Mon, 09 Jun 2008 14:07:45 -0400 Received: from jidanni2.jidanni.org (122-127-33-224.dynamic.hinet.net [122.127.33.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a2.g.dreamhost.com (Postfix) with ESMTP id 629E440E5A for ; Mon, 9 Jun 2008 11:07:42 -0700 (PDT) To: bug-gnu-emacs@gnu.org From: jidanni@jidanni.org Date: Tue, 10 Jun 2008 02:07:37 +0800 Message-ID: <87ej76qy6u.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 Let's examine today the docstring for M-r (translated from r) runs the command previous-matching-history-element which is an interactive compiled Lisp function in `simple.el'. It is bound to M-r. (previous-matching-history-element REGEXP N) Find the previous history element that matches REGEXP. (Previous history elements refer to earlier actions.) With prefix argument N, search for Nth previous match. If N is negative, find the next or Nth next match. Normally, history elements are matched case-insensitively if `case-fold-search' is non-nil, but an uppercase letter in REGEXP makes the search case-sensitive. See also `minibuffer-history-case-insensitive-variables'. OK, but what about when you want to search further back again: mention that you just hit a second M-r RET... And when one does hit that second M-r, it would be nice if the prompt would show what the current default search string is. All it ever says is "Previous element matching (regexp): " though indeed it remembers a default all the time at least after first use. Indeed it might even also say "found on history item 432" or "found at 18% of history" upon finding something, but maybe that's too verbose. Also some of us would like C-r to "bust through" into previous lines, so we don't have to use the less familiar M-r (ESC r for us old dogs who never learned new ALT tricks). Maybe make a variable to allow that. All the above also applies to M-s. From unknown Sun Jun 22 07:38:52 2025 X-Loop: don@donarmstrong.com Subject: bug#380: previous-matching-history-element beef up Reply-To: Stefan Monnier , 380@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 09 Jun 2008 19:35:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 380 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 380-submit@emacsbugs.donarmstrong.com id=B380.12130396932296 (code B ref 380); Mon, 09 Jun 2008 19:35:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 380) by emacsbugs.donarmstrong.com; 9 Jun 2008 19:28:13 +0000 Received: from mercure.iro.umontreal.ca (mercure.iro.umontreal.ca [132.204.24.67]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m59JS96K002290 for <380@emacsbugs.donarmstrong.com>; Mon, 9 Jun 2008 12:28:10 -0700 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 0DEFB2CF94C; Mon, 9 Jun 2008 15:28:09 -0400 (EDT) Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id EEA343FE0; Mon, 9 Jun 2008 15:27:59 -0400 (EDT) Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id D0D8A41BEC; Mon, 9 Jun 2008 15:27:59 -0400 (EDT) From: Stefan Monnier To: 380@debbugs.gnu.org Message-ID: References: <87ej76qy6u.fsf@jidanni.org> Date: Mon, 09 Jun 2008 15:27:59 -0400 In-Reply-To: <87ej76qy6u.fsf@jidanni.org> (jidanni@jidanni.org's message of "Tue, 10 Jun 2008 02:07:37 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca tag 380 +wishlist thanks > And when one does hit that second M-r, it would be nice if the prompt > would show what the current default search string is. All it ever says is > "Previous element matching (regexp): " though indeed it remembers a > default all the time at least after first use. Indeed, it should probably use the " (default )" convention. But maybe that would be impractical because the prompt would then be too long. > Also some of us would like C-r to "bust through" into previous lines, > so we don't have to use the less familiar M-r (ESC r for us old dogs > who never learned new ALT tricks). Maybe make a variable to allow > that. I don't know what you mean by "bust through", but in Emacs-23, C-s and C-r (i.e. isearch) will automatically jump through the history to find the next match. Maybe that's what you meant. Stefan From unknown Sun Jun 22 07:38:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#380: previous-matching-history-element beef up Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Oct 2019 05:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 380 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 380@debbugs.gnu.org Received: via spool by 380-submit@debbugs.gnu.org id=B380.157094371021271 (code B ref 380); Sun, 13 Oct 2019 05:16:02 +0000 Received: (at 380) by debbugs.gnu.org; 13 Oct 2019 05:15:10 +0000 Received: from localhost ([127.0.0.1]:34777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJWDl-0005X1-T8 for submit@debbugs.gnu.org; Sun, 13 Oct 2019 01:15:10 -0400 Received: from quimby.gnus.org ([80.91.231.51]:49706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJWDl-0005Wt-0q for 380@debbugs.gnu.org; Sun, 13 Oct 2019 01:15:09 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJWDf-00050y-PY; Sun, 13 Oct 2019 07:15:06 +0200 From: Lars Ingebrigtsen References: <87ej76qy6u.fsf@jidanni.org> Date: Sun, 13 Oct 2019 07:15:03 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 09 Jun 2008 15:27:59 -0400") Message-ID: <878sppcjl4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: >> And when one does hit that second M-r, it would be nice if the prompt >> would show what the current default search string is. All it ever says is >> "Previous element matching (regexp): " though i [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: >> And when one does hit that second M-r, it would be nice if the prompt >> would show what the current default search string is. All it ever says is >> "Previous element matching (regexp): " though indeed it remembers a >> default all the time at least after first use. > > Indeed, it should probably use the " (default )" convention. > But maybe that would be impractical because the prompt would then be > too long. It's a bit on the long side, but I think it helps usability a lot, so I've made this change on the trunk now. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 13 01:15:16 2019 Received: (at control) by debbugs.gnu.org; 13 Oct 2019 05:15:16 +0000 Received: from localhost ([127.0.0.1]:34780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJWDs-0005XR-50 for submit@debbugs.gnu.org; Sun, 13 Oct 2019 01:15:16 -0400 Received: from quimby.gnus.org ([80.91.231.51]:49722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJWDq-0005XG-Iv for control@debbugs.gnu.org; Sun, 13 Oct 2019 01:15:14 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJWDn-000517-VM for control@debbugs.gnu.org; Sun, 13 Oct 2019 07:15:13 +0200 Date: Sun, 13 Oct 2019 07:15:11 +0200 Message-Id: <877e59cjkw.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #380 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 380 fixed close 380 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 380 fixed close 380 27.1 quit