all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* dired-x 'mother knows best' shell guess attitude
@ 2003-04-16  1:49 Dan Jacobson
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Jacobson @ 2003-04-16  1:49 UTC (permalink / raw)


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.  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.
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dired-x 'mother knows best' shell guess attitude
       [not found] <mailman.4704.1050480324.21513.bug-gnu-emacs@gnu.org>
@ 2003-04-16 17:31 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2003-04-16 17:31 UTC (permalink / raw)


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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-16 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-16  1:49 dired-x 'mother knows best' shell guess attitude Dan Jacobson
     [not found] <mailman.4704.1050480324.21513.bug-gnu-emacs@gnu.org>
2003-04-16 17:31 ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.