GNU bug report logs - #25665
26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command

Previous Next

Package: emacs;

Reported by: Chunyang Xu <mail <at> xuchunyang.me>

Date: Thu, 9 Feb 2017 15:12:01 UTC

Severity: wishlist

Tags: patch, wontfix

Found in version 26.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Tino Calancha <tino.calancha <at> gmail.com>
Cc: 25665 <at> debbugs.gnu.org, mail <at> xuchunyang.me
Subject: bug#25665: 26.0.50;	[PATCH] Indicate prefix arg in minibuffer prompt for shell-command
Date: Thu, 9 Feb 2017 13:00:51 -0800 (PST)
> > I am not sure about this.
> > The meaning of the prefix argument must be explained in the docstring.
> > That and the manual are the source of documentation, not the prompt.
> >
> > Having a short prompt is also good because there are more space
> > in the line for the command; a short prompt is also better while tipying
> > a long command: sometimes you want to change something at the beginning:
> > < ; `beginning-of-buffer'
> > Now you need to `C-f' several times to jump out of the prompt.  The more
> > verbose prompt, the more `C-f' you need.
> >
> > Just my opinion.  Let's see what other people think.
> 
> I think it goes against Emacs conventions.  We have quite a few
> commands that insert output into the current buffer when invoked with
> an argument.

(Sorry, I misunderstood the suggestion.  I didn't look at the
patch, and didn't get that this was about changing a _prompt_.)

I don't think the suggestion "goes against Emacs conventions".

Certainly it is the case that we do not do this for most
commands that do something different when invoked with a
prefix arg.

But there is a difference between a command that prompts
and one, such as `eval-last-sexp', that does not.  Most
"commands that insert output" when you use a prefix arg
do not prompt, I think. 

And I know of no convention that says that a command should
not use a different prompt when a prefix arg is used.

It's a judgment call.  For this one I have no opinion.

I don't think, however, that the length of the prompt is
very important here.  That's a fairly weak criterion for
deciding whether to change the prompt.

Doing something like what was suggested could be helpful
mainly in a situation where (1) the behavior is very
different if a prefix arg is used and (2) it's not easy
to undo a mistaken use of the command.

If that's not the case here then I don't see a need for it.




This bug report was last modified 5 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.