bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dired-x 'mother knows best' shell guess attitude


From: Kevin Rodgers
Subject: Re: dired-x 'mother knows best' shell guess attitude
Date: Wed, 16 Apr 2003 11:31:28 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

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?


--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]