GNU bug report logs - #380
previous-matching-history-element beef up

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: jidanni <at> jidanni.org; dated Mon, 9 Jun 2008 18:15:03 UTC; Maintainer for emacs is bug-gnu-emacs <at> gnu.org.
Severity set to `wishlist' from `normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
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 <at> 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 <monnier <at> iro.umontreal.ca>
To: 380 <at> debbugs.gnu.org
Subject: Re: bug#380: previous-matching-history-element beef up
Message-ID: <jwv4p82qule.fsf-monnier+emacsbugreports <at> gnu.org>
References: <87ej76qy6u.fsf <at> jidanni.org>
Date: Mon, 09 Jun 2008 15:27:59 -0400
In-Reply-To: <87ej76qy6u.fsf <at> jidanni.org> (jidanni <at> 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 <at> 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 <foo>)" 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




Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#380; Package emacs. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
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 <submit <at> emacsbugs.donarmstrong.com>; 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 <at> 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 <at> 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 <at> 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 <jidanni <at> jidanni.org>)
	id 1K5lmT-00035M-O5
	for bug-gnu-emacs <at> 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 <bug-gnu-emacs <at> gnu.org>; Mon,  9 Jun 2008 11:07:42 -0700 (PDT)
To: bug-gnu-emacs <at> gnu.org
Subject: previous-matching-history-element beef up
From: jidanni <at> jidanni.org
Date: Tue, 10 Jun 2008 02:07:37 +0800
Message-ID: <87ej76qy6u.fsf <at> 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 <escape> 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.





Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#380; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2011 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.