From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: A smarter command history Date: Sun, 26 Jan 2014 10:53:04 -0800 (PST) Message-ID: <8cbefaa1-b801-4274-b279-ea75ee8bcd30@default> References: 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 1390762402 20860 80.91.229.3 (26 Jan 2014 18:53:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jan 2014 18:53:22 +0000 (UTC) To: Tom , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 26 19:53:26 2014 Return-path: Envelope-to: ged-emacs-devel@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 1W7Upi-00073B-24 for ged-emacs-devel@m.gmane.org; Sun, 26 Jan 2014 19:53:26 +0100 Original-Received: from localhost ([::1]:55831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7Uph-0003aH-CO for ged-emacs-devel@m.gmane.org; Sun, 26 Jan 2014 13:53:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7UpW-0003aA-VK for emacs-devel@gnu.org; Sun, 26 Jan 2014 13:53:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7UpO-0007Gn-DM for emacs-devel@gnu.org; Sun, 26 Jan 2014 13:53:14 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:32238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7UpO-0007Gj-6D for emacs-devel@gnu.org; Sun, 26 Jan 2014 13:53:06 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s0QIr3xN011212 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 26 Jan 2014 18:53:04 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s0QIr3qD016008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 26 Jan 2014 18:53:03 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0QIr2TH018024; Sun, 26 Jan 2014 18:53:02 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169136 Archived-At: > > > For example, in grep's case the command history would look > > > like this after the fix: > > > (let ((default-directory "/home/me/projx")) > > > (grep "grep -n -i test")) > > > > That could also be problematic if the user wants to run the same > > grep in various directory. >=20 > Deleting things is easy and in my experience in most of the > cases I want to run the same grep query in the same directory. Sounds like a reason _not_ to implement what you asked for: YAGNI, if you typically run the same grep query in the same dir. Your reason for the request was that it is a nuisance to change directory: >> This is useful to repeat a previous grep command later, >> but you have to switch to the directory first if you want >> to run grep in the same directory as previously. FWIW, I'd suggest that Emacs command `cd' provide a reasonable minibuffer history list: the directory names previously entered from the minibuffer. That is not the case currently - all entered file and directory names are in the history. (To change to a subdir, `cd' completion is quick.)