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: Add lgrep/rgrep commands to Edit > Search submenu Date: Mon, 26 Jan 2009 16:48:16 -0800 Message-ID: <000f01c98018$f1d8fdb0$0200a8c0@us.oracle.com> References: <87y6x0ph4x.fsf@kfs-lx.rd.rdm><86ljszky0l.fsf@susa.i-did-not-set--mail-host-address--so-tickle-me><8763k39hxb.fsf@jurta.org> <87y6wzngq9.fsf@kfs-lx.rd.rdm><200901260042.n0Q0gnuI029772@rodan.ics.uci.edu> <87ab9dll12.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233017366 31066 80.91.229.12 (27 Jan 2009 00:49:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 00:49:26 +0000 (UTC) Cc: emacs-devel@gnu.org, "'Kim F. Storm'" , 'Gilaras Drakeson' To: "'Juri Linkov'" , "'Dan Nicolaescu'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 27 01:50:39 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LRcA2-00067K-FS for ged-emacs-devel@m.gmane.org; Tue, 27 Jan 2009 01:50:38 +0100 Original-Received: from localhost ([127.0.0.1]:54595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRc8k-0003y6-P4 for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2009 19:49:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRc8f-0003xq-Tn for emacs-devel@gnu.org; Mon, 26 Jan 2009 19:49:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRc8d-0003x4-MB for emacs-devel@gnu.org; Mon, 26 Jan 2009 19:49:12 -0500 Original-Received: from [199.232.76.173] (port=43224 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRc8d-0003x1-Jj for emacs-devel@gnu.org; Mon, 26 Jan 2009 19:49:11 -0500 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:38537 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRc8d-0007Sv-4c for emacs-devel@gnu.org; Mon, 26 Jan 2009 19:49:11 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n0R0oJwh010845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 27 Jan 2009 00:50:20 GMT Original-Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n0R0mIof017087; Tue, 27 Jan 2009 00:48:19 GMT Original-Received: from dradamslap1 (/141.144.88.215) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 27 Jan 2009 00:48:17 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87ab9dll12.fsf@jurta.org> Thread-Index: AcmAErTt1Dq8hzofRrCg7G0FXqn+RQABM19w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt701.oracle.com [141.146.40.71] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.497E59D4.007D:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108277 Archived-At: > I agree, we should keep more key prefixes for other useful things. > So we can use only one prefix `M-g r' for all grep commands: > > M-g r e grep > M-g r l lgrep > M-g r r rgrep > M-g r f grep-find > > M-g M-r M-e grep > M-g M-r M-l lgrep > M-g M-r M-r rgrep > M-g M-r M-f grep-find > > All these key sequences are easy to type. I don't really care one way or the other, but my reaction is this: What's wrong with `M-x grep' and so on? Seems easier to remember and nearly as easy to type. Especially with TAB completion: `M-x lg TAB' (4 chars) vs `M-g r l' (3 chars). Is the keystroke savings really worth it? On the other hand (as I've suggested before), it makes sense to have a binding such as `g' in the *grep* buffer that calls up the last `grep' etc. command again. Currently, `g' runs `recompile' in *grep*. (Or you could have bindings `g', `l', `r', and `f' for the various grep flavors, and remember the previous command of each grep flavor.) Ignore this, if you feel strongly about it.