* all the prefix arguments do the same thing
@ 2002-06-02 3:46 Dan Jacobson
2002-06-03 11:41 ` Richard Stallman
0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2002-06-02 3:46 UTC (permalink / raw)
Gentlemen, let's examine
ESC | runs the command shell-command-on-region
Execute string COMMAND in inferior shell with region as input.
Normally display output (if any) in temp buffer `*Shell Command Output*';
Prefix arg means replace the region with it.
Well, how about let's say one doesn't want to replace the region, nor
put it in a separate buffer, but instead insert the output above or below
the region?
Currently any prefix argument means "replace". Do you think just
maybe you could make some certain prefix arguments do what I want?
Don't you think it isn't smart to make _all_ the prefix arguments do
the same thing? Isn't that a lazy bad habit that will only bite you
back later when you want to add new actions?
Emacs is littered with this... Why didn't Stallman think ahead... What
if all the TCP ports pointed to the same service?
In the future, OK, a new command should at least use 4 (C-u) and maybe
1 to do the default "when given an argument" thing, but say 98 should
trigger an error if it hasn't been purposely implemented yet -- in
case somebody expects to do special argument 98's function on an older
version that doesn't support it. Better trigger an error that have
the user think things went smoothly.
--
http://jidanni.org/ Taiwan(04)25854780
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: all the prefix arguments do the same thing
2002-06-02 3:46 all the prefix arguments do the same thing Dan Jacobson
@ 2002-06-03 11:41 ` Richard Stallman
0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2002-06-03 11:41 UTC (permalink / raw)
Cc: emacs-devel
Well, how about let's say one doesn't want to replace the region, nor
put it in a separate buffer, but instead insert the output above or below
the region?
Currently any prefix argument means "replace". Do you think just
maybe you could make some certain prefix arguments do what I want?
I think that would be creeping featurism. You can duplicate the region
before you run M-| and get the results you want.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-03 11:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-02 3:46 all the prefix arguments do the same thing Dan Jacobson
2002-06-03 11:41 ` Richard Stallman
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.