From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#22627: 25.1.50; Wishlist: It would be nice if the grep buffer had a history Date: Thu, 11 Feb 2016 14:04:13 -0800 (PST) Message-ID: References: <<87lh6rx08h.fsf@gnus.org>> <<8337sz9e2l.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1455228328 10953 80.91.229.3 (11 Feb 2016 22:05:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2016 22:05:28 +0000 (UTC) Cc: 22627@debbugs.gnu.org To: Eli Zaretskii , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 11 23:05:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aTzMR-0005nT-6v for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Feb 2016 23:05:15 +0100 Original-Received: from localhost ([::1]:53992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTzMN-0001sZ-CX for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Feb 2016 17:05:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTzMJ-0001pO-Dl for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2016 17:05:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTzME-0006Us-EC for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2016 17:05:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTzME-0006Uj-B6 for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2016 17:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aTzME-000451-0I for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2016 17:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Feb 2016 22:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22627-submit@debbugs.gnu.org id=B22627.145522826415633 (code B ref 22627); Thu, 11 Feb 2016 22:05:01 +0000 Original-Received: (at 22627) by debbugs.gnu.org; 11 Feb 2016 22:04:24 +0000 Original-Received: from localhost ([127.0.0.1]:37017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aTzLc-000445-81 for submit@debbugs.gnu.org; Thu, 11 Feb 2016 17:04:24 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:22494) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aTzLa-00043q-5I for 22627@debbugs.gnu.org; Thu, 11 Feb 2016 17:04:22 -0500 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1BM4FLl017133 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 11 Feb 2016 22:04:15 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u1BM4EdH026317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 11 Feb 2016 22:04:14 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u1BM4DX7018734; Thu, 11 Feb 2016 22:04:14 GMT In-Reply-To: <<8337sz9e2l.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112908 Archived-At: > > `g' works fine for redoing, but it would be great if you could return t= o > > the previous (and next) with the normal `r'/`n' commands. >=20 > We could have an optional feature whereby the Grep buffer is named > something like "*grep-the-command-line-used*". Then as long as the > next Grep command is different, you will have a new buffer for its > output, and Bob's your uncle. FWIW, in my `grep+.el': . You can automatically rename the current grep buffer to reflect the args using (add-hook 'grep-mode-hook 'grepp-rename-buffer-to-last-no-confirm) . You can rename it thus on demand using `r'. . `+' renames current grep buffer uniquely (without the args) and switches to buffer `*grep*' . `b' reads a grep buffer name and switches to that buffer. A grep buffer here is any buffer whose name matches `'\\*grep\\*', which includes thos= e whose names include the arguments. You might want to do something similar for grep.el. https://www.emacswiki.org/emacs/download/grep%2b.el