From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command Date: Fri, 10 Feb 2017 16:13:26 +0900 (JST) Message-ID: References: <8760kjz4nv.fsf@calancha-pc> <87inojm0v5.fsf@users.sourceforge.net> <87a89un0jc.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1486710852 3848 195.159.176.226 (10 Feb 2017 07:14:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2017 07:14:12 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: 25665@debbugs.gnu.org, Chunyang Xu , Tino Calancha To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 08:14:08 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 1cc5PE-0000jb-0E for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2017 08:14:08 +0100 Original-Received: from localhost ([::1]:42257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc5PJ-0005XP-OS for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2017 02:14:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc5PD-0005WN-PJ for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:14:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc5P8-0005zR-QN for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:14:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cc5P8-0005z8-L8 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cc5P8-0007zV-GU for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2017 07:14: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.148671081830676 (code B ref 25665); Fri, 10 Feb 2017 07:14:02 +0000 Original-Received: (at 25665) by debbugs.gnu.org; 10 Feb 2017 07:13:38 +0000 Original-Received: from localhost ([127.0.0.1]:33724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5Ok-0007yi-3V for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:13:38 -0500 Original-Received: from mail-pf0-f194.google.com ([209.85.192.194]:36060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5Oi-0007yU-Vo for 25665@debbugs.gnu.org; Fri, 10 Feb 2017 02:13:37 -0500 Original-Received: by mail-pf0-f194.google.com with SMTP id 19so1964578pfo.3 for <25665@debbugs.gnu.org>; Thu, 09 Feb 2017 23:13:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=DuWvDHitpq/CDp+7Sevd96x6qNjBKbfLMOvdjLeYqsk=; b=dwd+wYfjWgSWEqo99QFQ7fFW0fwwy7K/MaDBbTlkLIBsaPaJm6bchuh/wEgFBtS+Sm POdbrcnOPj+0u01tbUfyHDeupkGXkLrRhLzRz+UjMz05srBcw3FF82LPmavMa9FdQ8zO bjT5dJ20QwI6XcrKh7Lsdi3j236+FSxsC1abV7fJ+lcba4bLmK5g7RzbJBWhnDeVSWCI I9SqI67nQ9w0ktxSBYPBtE0+LN7EBKGvQiw6f48DM+gpUWAyoUnoP+ekTl872Cj+2Zdb E2V5nxpoSCkrw3J7wr7Iqy6Q6i+07FsRezNh1/BG26b3FQCic9vPkYhihl/POzc9vvQ5 2USA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=DuWvDHitpq/CDp+7Sevd96x6qNjBKbfLMOvdjLeYqsk=; b=X1cO1Nef/Aq5SjFBstYw6qhx52180C8nL6k67BvFoDvqbJ6qaIZNNRcodrARzQ3gh8 gBNRbbZqOn185UxxzPtXHrTRcT/2M/J8HFOpYn6bUbDWgqXV00rY21X2PZSI/5c26f+m Ropy1l+7IeiWcBPt1tZWemL3LON8chDmVjuA1QK+mUTATyYsX2ndvZ5uNSywXS3A8M4q 34fs6tiFkZxjpO39EaC3yB+l9UkN2e8AAllrM/CYPpwiJBeitb6ahBo4jnm6/UYoLKJ2 7h+iEJVLMAm7VrfDQYiI5GcAtU4KJ3X2OOT9zwu6Fwi+nAhJUqBZ3wISiHTjkiZdSmdI qFkg== X-Gm-Message-State: AMke39m6VWZVoM+TYng3UAE2lQf1YK8qGBPOqYEtxkdUtzWlKLHcS/WPw+XSEUyue1Xtyg== X-Received: by 10.99.170.5 with SMTP id e5mr9022281pgf.89.1486710811316; Thu, 09 Feb 2017 23:13:31 -0800 (PST) Original-Received: from calancha-pc (104.81.147.124.dy.bbexcite.jp. [124.147.81.104]) by smtp.gmail.com with ESMTPSA id e4sm2364709pgc.45.2017.02.09.23.13.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2017 23:13:30 -0800 (PST) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <87a89un0jc.fsf@users.sourceforge.net> 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:129180 Archived-At: On Thu, 9 Feb 2017, npostavs@users.sourceforge.net wrote: > 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. I see. That's a point. I agree in that edge case would be useful. >> 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. It might be a pain in the ass to follow such new policy: emacs -Q: C-x b foo RET aeiou I) C-x C-s II) C-u C-x C-s III) C-u C-u C-x C-s IV) C-u C-u C-u C-x C-s All have the same prompt: File to save in: ~/