From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: dired-x 'mother knows best' shell guess attitude Date: Wed, 16 Apr 2003 11:31:28 -0600 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E9D9370.5040101@yahoo.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1050514297 6209 80.91.224.249 (16 Apr 2003 17:31:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2003 17:31:37 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 16 19:31:33 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 195qku-0001bS-00 for ; Wed, 16 Apr 2003 19:31:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195qlC-0007Ki-0A for gnu-bug-gnu-emacs@m.gmane.org; Wed, 16 Apr 2003 13:31:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 195ql6-00079U-00 for bug-gnu-emacs@prep.ai.mit.edu; Wed, 16 Apr 2003 13:31:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 195qky-0006Zv-00 for bug-gnu-emacs@prep.ai.mit.edu; Wed, 16 Apr 2003 13:31:39 -0400 Original-Received: from horus.isnic.is ([193.4.58.12]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195qkn-000642-00 for bug-gnu-emacs@prep.ai.mit.edu; Wed, 16 Apr 2003 13:31:25 -0400 Original-Received: from mail.fu-berlin.de (root@mail.fu-berlin.de [160.45.11.165]) by horus.isnic.is (8.12.8/8.12.8/isnic) with ESMTP id h3GHVN4f096063 for ; Wed, 16 Apr 2003 17:31:24 GMT (envelope-from ihs_4664@yahoo.com) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Wed, 16 Apr 2003 19:31:22 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Wed, 16 Apr 2003 19:31:22 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 33 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1050514282 1940216 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4817 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4817 Dan Jacobson wrote: > Gentlemen, isn't emacs rather rude when it second guesses the user's > idea of a good command to run: > $ mkdir x; cd x; touch a.tar > $ emacs -l dired-x . > ! w c RET ! ESC p > > It now already knows I want to use wc. However it insists mother > knows best and still offers tar. Yes, M-p should put "wc" in the minibuffer. "tar xvf" should be available via M-n. > I could have already used wc 1000 > times and it still wouldn't get a hint about what I like. > > Worse yet is when there are several of its "better choices", not just > one. In this case we have to plod thru each one of those with ESC p > till we get to the one we just used, now way in the back of the bus. > E.g. for .dvi, see dired-guess-shell-alist-default. > > Note, if I used wc on tar files, and sum on cpio files, then if I am > on a cpio file, it should prompt like: sum, cpio -iv <, wc > In that order, I suppose. Interesting idea. Why don't you implement it? -- Kevin Rodgers