From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command Date: Thu, 09 Feb 2017 23:16:07 -0500 Message-ID: <87a89un0jc.fsf@users.sourceforge.net> References: <8760kjz4nv.fsf@calancha-pc> <87inojm0v5.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486700172 4006 195.159.176.226 (10 Feb 2017 04:16:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2017 04:16:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25665@debbugs.gnu.org, Chunyang Xu To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 05:16:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc2cw-0000gl-QN for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2017 05:16:07 +0100 Original-Received: from localhost ([::1]:41663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc2d2-0004lg-DB for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Feb 2017 23:16:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc2cw-0004lX-3M for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 23:16:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc2cs-0006pM-UR for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 23:16:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cc2cs-0006pG-RO for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 23:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cc2cs-0003f7-Gn for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 23:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2017 04:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25665 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25665-submit@debbugs.gnu.org id=B25665.148670010514012 (code B ref 25665); Fri, 10 Feb 2017 04:16:02 +0000 Original-Received: (at 25665) by debbugs.gnu.org; 10 Feb 2017 04:15:05 +0000 Original-Received: from localhost ([127.0.0.1]:33656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc2bx-0003dv-6x for submit@debbugs.gnu.org; Thu, 09 Feb 2017 23:15:05 -0500 Original-Received: from mail-io0-f181.google.com ([209.85.223.181]:34999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc2bu-0003d8-QO for 25665@debbugs.gnu.org; Thu, 09 Feb 2017 23:15:03 -0500 Original-Received: by mail-io0-f181.google.com with SMTP id j18so41187431ioe.2 for <25665@debbugs.gnu.org>; Thu, 09 Feb 2017 20:15:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=wB4uHWsL6norQYuYStcnnls6wFgZwRrl2odH4+opZfg=; b=gy/6BHXsIs9E9cE0jH5xE51NRHWifNnUjpSbgHIAZBB1JOK7GExk0aqHW+9HjPI5nL FZ9f50EaEf2EsRRaq/pzzfa6Z3EJCKuiMp0gXz+QF3fSTnMmrOL46XlphRKO3CwUv8F2 ZlJW0IGba3aHserZ6fS/Gu1HuEcqm0f4VKgevEOOpcJ/sB+CS/mtmgvx0ieOW2Y3Pwn5 N1mYGQmgf5SJd64Vmv9RyXCxcPMnvBsI50F6OBgw7Jby/Ui9Xz4c8BTFSZ9kw9F1Cmx2 3AjPnxZeICzooDzoevJ0WyphFPgX47B/0QvNs0CD+qclXhowoNuRZXld7oTpOMBz8hjq 305Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=wB4uHWsL6norQYuYStcnnls6wFgZwRrl2odH4+opZfg=; b=hBELHcdn2elEO0k4drENOWRFwixzquGy7zxT/+LrNHmfTecwwwJajKt8u20JtLmSOp vHwJtGjEvB/uXV0Eu7bbniMaa09QffEo/yhR0alUqIc2oGGV24b4tGV9NTVTyARFHhEg 6N4YTS0vSsXcMbDp+yzLR0y7caHQdfOeV9SQgJI3HaSqRw+ZIMdiQyCfB8Rwi38cWhpH w94Fx3GUKKKKuvSx3oicoXc3BAewUFsA2J7X3tJtqpikM7jeqN4Ee8cUgSUDxsB9AlrI SOEzfZOrTMo0EqW5EaTm981jALw/TjUjuHl0/dvcf4nE3qX/3Hp/oD9PSqldeQsGj1bL vYtw== X-Gm-Message-State: AMke39l85Aj60O/aX+j0uG3G6EnDb1Z2Oiilkbu1L8oSSsMc1XubdmDks8yK1KbGPbeZcA== X-Received: by 10.107.15.196 with SMTP id 65mr6949932iop.141.1486700097297; Thu, 09 Feb 2017 20:14:57 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id r192sm701051ita.13.2017.02.09.20.14.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Feb 2017 20:14:56 -0800 (PST) In-Reply-To: (Tino Calancha's message of "Fri, 10 Feb 2017 12:05:29 +0900 (JST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129175 Archived-At: Tino Calancha writes: > On Thu, 9 Feb 2017, npostavs@users.sourceforge.net wrote: > >> On Thu, Feb 9, 2017 at 11:53 AM, Tino Calancha wrote: >> >>> The meaning of the prefix argument must be explained in the docstring. >>> That and the manual are the source of documentation, not the prompt. >> >> But it's nice if Emacs gives you a different prompt, so that you can be >> sure you typed in the command correctly. > Confirmation for having typed C-u? > Well, sometimes some keys in old keyboards die... ;-) We already have that in `echo-keystrokes'. But I'm thinking also of times when you do C-u M-! and then switch to another window to copy the command, then maybe when you come back, you don't remember 100% what you were doing. >> Just like M-& gives a >> different prompt from M-!, even though you could figure out the >> different meaning just by reading the docstring of each command. > These are different commands so its Emacs (and whatever editor) > convention to how a different prompt. The OP suggests to use > a different prompt for the same command w/ or w/o prefix. M-& and M-! are practically the same command anyway, async-shell-command is basically just (defun async-shell-command (command) (shell-command (concat command "&"))) > > There are lots of commands in Emacs accepting a raw, > numeric prefix etc. If we change M-! prompt, we might > also want to tune the prompt for all of them. Do we want that? IMO yes, if the difference can be summarized in the prompt concisely enough.