From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 10:11:15 2017 Received: (at submit) by debbugs.gnu.org; 9 Feb 2017 15:11:15 +0000 Received: from localhost ([127.0.0.1]:33355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbqNO-0003hR-V8 for submit@debbugs.gnu.org; Thu, 09 Feb 2017 10:11:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbqNM-0003hB-Dx for submit@debbugs.gnu.org; Thu, 09 Feb 2017 10:11:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbqNG-0006ba-04 for submit@debbugs.gnu.org; Thu, 09 Feb 2017 10:11:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48225) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbqNF-0006bW-TX for submit@debbugs.gnu.org; Thu, 09 Feb 2017 10:11:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbqNE-0002T5-NT for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 10:11:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbqN9-0006Zg-O6 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 10:11:04 -0500 Received: from smtpbg65.qq.com ([103.7.28.233]:4790) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbqN9-0006Z2-4E for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 10:10:59 -0500 X-QQ-mid: bizesmtp1t1486653045twpn2r7hl Received: from Chunyangs-MacBook-Air.local (unknown [114.236.198.223]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Thu, 09 Feb 2017 23:10:44 +0800 (CST) X-QQ-SSF: 0110000000200040F410000A0000000 X-QQ-FEAT: PH6C0OPhr9FdXYvebuEoA/Qq3KBSvFVBE/Mia7noYyMEm57UEsGO8TS29VU9/ 0IeZbv9nBiWYBHrr20GTJw1d0QkJgeQfwp6To90e3jHHQBBW9BtI/mTwBINXQyekKXpFxyP ssro/O2pKfKVNRE2uiW2FLRs0xs1t/w+vwY2koAYfzZ2Mz3j88rVQ7Tz61u+sNeu3pL42au y3/NE5whtPCEKL0Ba8BMSLx4PTVj3BGZt6tmdQXjCKUUvFMlBLC/HVShnEIZ+iXXNY76zMn kxow== X-QQ-GoodBg: 0 From: Chunyang Xu To: bug-gnu-emacs@gnu.org Subject: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command Date: Thu, 09 Feb 2017 23:10:45 +0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-=-= Content-Type: text/plain Hi, When using 'C-u M-!' ('shell-command') I feel confident if the minibuffer prompt becomes Shell command and insert output: since it explains the purpose of the prefix argument. The same thing goes for 'M-&' ('async-shell-command') and 'M-|' ('shell-command-on-region'). I have attached a patch which implements this idea. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=0001-Indicate-prefix-arg-in-minibuffer-prompt-for-shell-c.patch >From e395aa9e601bb8071b53704b7aa27b8b28ac22b1 Mon Sep 17 00:00:00 2001 From: Chunyang Xu Date: Thu, 9 Feb 2017 22:47:40 +0800 Subject: [PATCH] Indicate prefix arg in minibuffer prompt for shell-command * lisp/simple.el (async-shell-command, shell-command) (shell-command-on-region): Show purpose of prefix argument in the minibuffer prompt. Copyright-paperwork-exempt: yes --- lisp/simple.el | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 441713a18b..9720a8935c 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3311,13 +3311,17 @@ async-shell-command shell (with its need to quote arguments)." (interactive (list - (read-shell-command "Async shell command: " nil nil - (let ((filename - (cond - (buffer-file-name) - ((eq major-mode 'dired-mode) - (dired-get-filename nil t))))) - (and filename (file-relative-name filename)))) + (read-shell-command (format "Async shell command%s: " + (if current-prefix-arg + " and insert output" + "")) + nil nil + (let ((filename + (cond + (buffer-file-name) + ((eq major-mode 'dired-mode) + (dired-get-filename nil t))))) + (and filename (file-relative-name filename)))) current-prefix-arg shell-command-default-error-buffer)) (unless (string-match "&[ \t]*\\'" command) @@ -3382,13 +3386,17 @@ shell-command (interactive (list - (read-shell-command "Shell command: " nil nil - (let ((filename - (cond - (buffer-file-name) - ((eq major-mode 'dired-mode) - (dired-get-filename nil t))))) - (and filename (file-relative-name filename)))) + (read-shell-command (format "Shell command%s: " + (if current-prefix-arg + " and insert output" + "")) + nil nil + (let ((filename + (cond + (buffer-file-name) + ((eq major-mode 'dired-mode) + (dired-get-filename nil t))))) + (and filename (file-relative-name filename)))) current-prefix-arg shell-command-default-error-buffer)) ;; Look for a handler in case default-directory is a remote file name. @@ -3640,7 +3648,11 @@ shell-command-on-region ;; Do this before calling region-beginning ;; and region-end, in case subprocess output ;; relocates them while we are in the minibuffer. - (setq string (read-shell-command "Shell command on region: ")) + (setq string (read-shell-command + (format "Shell command on region%s: " + (if current-prefix-arg + " and replace with output" + "")))) ;; call-interactively recognizes region-beginning and ;; region-end specially, leaving them in the history. (list (region-beginning) (region-end) -- 2.11.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 11:54:07 2017 Received: (at 25665) by debbugs.gnu.org; 9 Feb 2017 16:54:07 +0000 Received: from localhost ([127.0.0.1]:33382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbryx-00065M-Eh for submit@debbugs.gnu.org; Thu, 09 Feb 2017 11:54:07 -0500 Received: from mail-pf0-f178.google.com ([209.85.192.178]:33363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbryw-00064v-G8 for 25665@debbugs.gnu.org; Thu, 09 Feb 2017 11:54:06 -0500 Received: by mail-pf0-f178.google.com with SMTP id y143so1861292pfb.0 for <25665@debbugs.gnu.org>; Thu, 09 Feb 2017 08:54:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=reI7/b2dNP6UeVY1klpGTxv4uhNltoLTyIesju6Ixus=; b=vh4OyAAuUqiTXQnvSjSxR23HAhQXra1el240xH8RYKGJs3bfvy9mFdCpRmgnxIeIWw 7gx+4lfE2dGIdxsGVDMb8pGifEREz/P4BE3MMbOoQcIwCe2XLht72lDfxp3uecjCDyx4 ZwIlAdIP3kE4VWIXdBpAnNvuMU1NzlpDR7g3251mbaFD+WMGl25wf1ZMbTeF6vBYzbQy TO0jmxF5ziC3OWN62TDRpKcaVNzmtDyz98k/SZi+04nSZSl4GB/fRzADXUkYXnPzxymi l0nzaETGtIycDy7IjEFkMqixxR+i24XpfIFxVmuWNp2NzQEJQj9j6iAoDdzbi9QMXIG6 VxEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=reI7/b2dNP6UeVY1klpGTxv4uhNltoLTyIesju6Ixus=; b=Ze9N+FXaqBIAHeGNMCMuj0nDY9X0b/aOtsHZIJhHGuxfS2c9QO6/9w6VQx2UwVAh1L KNW7kFiFBcVH2nh+j/8CUNkDiKJe5pedPG3Dk9tOTdfg+EcgFOxgMZmpQusBgIa5kFhj PgEyrzPV8VzwZofqSL9D+MZDaK5bm9WgHKz73lbvMdjjC/NtfXD+6MdIf/eZkU0ZsgmN JPilJESf5qu+o0X3xh+JJ2447WATMkkghDS2dj3rbO97UNWtFCbFnAgkwbKO4vNIIAvW XBm6IvEiiREfNff+oGyUSrv5VU8IuwG6FK+sGS9ylIflfik1kqGQU1RC41IZ2ysFRnAl caOg== X-Gm-Message-State: AMke39k6pqLlv68EPohms1Pi4NyF5piq5381eE1MYUDVMV/dhIVlOnZ62F+fbv1H1NZCAg== X-Received: by 10.98.64.3 with SMTP id n3mr4802897pfa.2.1486659240665; Thu, 09 Feb 2017 08:54:00 -0800 (PST) Received: from calancha-pc (104.81.147.124.dy.bbexcite.jp. [124.147.81.104]) by smtp.gmail.com with ESMTPSA id e7sm30622461pgp.2.2017.02.09.08.53.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Feb 2017 08:54:00 -0800 (PST) From: Tino Calancha To: Chunyang Xu Subject: Re: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command In-Reply-To: (Chunyang Xu's message of "Thu, 09 Feb 2017 23:10:45 +0800") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Date: Fri, 10 Feb 2017 01:53:56 +0900 Message-ID: <8760kjz4nv.fsf@calancha-pc> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 25665 Cc: 25665@debbugs.gnu.org, tino.calancha@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) Chunyang Xu writes: Thanks for the report. > Hi, > > When using 'C-u M-!' ('shell-command') I feel confident if the > minibuffer prompt becomes > > Shell command and insert output: > > since it explains the purpose of the prefix argument. The same thing > goes for 'M-&' ('async-shell-command') and 'M-|' > ('shell-command-on-region'). 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. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 13:08:52 2017 Received: (at 25665) by debbugs.gnu.org; 9 Feb 2017 18:08:52 +0000 Received: from localhost ([127.0.0.1]:33406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbt9I-00016m-Kk for submit@debbugs.gnu.org; Thu, 09 Feb 2017 13:08:52 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:28239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbt9G-00016Y-Ij for 25665@debbugs.gnu.org; Thu, 09 Feb 2017 13:08:51 -0500 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v19I8hvV015989 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 Feb 2017 18:08:43 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v19I8gN1014285 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 Feb 2017 18:08:43 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v19I8fpP006059; Thu, 9 Feb 2017 18:08:41 GMT MIME-Version: 1.0 Message-ID: <39fa3130-faca-49b8-a247-15f47f16504a@default> Date: Thu, 9 Feb 2017 10:08:40 -0800 (PST) From: Drew Adams To: Tino Calancha , Chunyang Xu Subject: RE: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command References: <8760kjz4nv.fsf@calancha-pc> In-Reply-To: <8760kjz4nv.fsf@calancha-pc> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 25665 Cc: 25665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.2 (----) > 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. >=20 > 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. >=20 > Just my opinion. Let's see what other people think. +1 The minibuffer should simply echo that the prefix arg has been used, and just what its numeric value is. It should not try to explain what the possible values are and what they mean. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 15:31:39 2017 Received: (at 25665) by debbugs.gnu.org; 9 Feb 2017 20:31:39 +0000 Received: from localhost ([127.0.0.1]:33465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbvNT-0004Yf-Ce for submit@debbugs.gnu.org; Thu, 09 Feb 2017 15:31:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbvNR-0004YQ-CZ for 25665@debbugs.gnu.org; Thu, 09 Feb 2017 15:31:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbvNJ-0001BJ-2N for 25665@debbugs.gnu.org; Thu, 09 Feb 2017 15:31:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbvNI-0001BE-Vm; Thu, 09 Feb 2017 15:31:28 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4147 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cbvNI-0007AE-2n; Thu, 09 Feb 2017 15:31:28 -0500 Date: Thu, 09 Feb 2017 22:31:32 +0200 Message-Id: <83r3373y3f.fsf@gnu.org> From: Eli Zaretskii To: Tino Calancha In-reply-to: <8760kjz4nv.fsf@calancha-pc> (message from Tino Calancha on Fri, 10 Feb 2017 01:53:56 +0900) Subject: Re: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command References: <8760kjz4nv.fsf@calancha-pc> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25665 Cc: 25665@debbugs.gnu.org, mail@xuchunyang.me X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Tino Calancha > Date: Fri, 10 Feb 2017 01:53:56 +0900 > Cc: 25665@debbugs.gnu.org, tino.calancha@gmail.com > > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 16:01:03 2017 Received: (at 25665) by debbugs.gnu.org; 9 Feb 2017 21:01:03 +0000 Received: from localhost ([127.0.0.1]:33488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbvpv-0005H7-95 for submit@debbugs.gnu.org; Thu, 09 Feb 2017 16:01:03 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:25723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbvpu-0005GT-0X for 25665@debbugs.gnu.org; Thu, 09 Feb 2017 16:01:02 -0500 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v19L0t5G013426 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 Feb 2017 21:00:55 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v19L0srZ011584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 Feb 2017 21:00:55 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v19L0qAx004990; Thu, 9 Feb 2017 21:00:52 GMT MIME-Version: 1.0 Message-ID: <5e6c5385-19a0-4705-9e62-8c0974047fa0@default> Date: Thu, 9 Feb 2017 13:00:51 -0800 (PST) From: Drew Adams To: Eli Zaretskii , Tino Calancha Subject: RE: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command References: <> <<8760kjz4nv.fsf@calancha-pc>> <<83r3373y3f.fsf@gnu.org>> In-Reply-To: <<83r3373y3f.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 25665 Cc: 25665@debbugs.gnu.org, mail@xuchunyang.me X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.2 (----) > > 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 tipyin= g > > 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 mor= e > > verbose prompt, the more `C-f' you need. > > > > Just my opinion. Let's see what other people think. >=20 > 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.=20 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 17:53:19 2017 Received: (at 25665) by debbugs.gnu.org; 9 Feb 2017 22:53:19 +0000 Received: from localhost ([127.0.0.1]:33557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbxaZ-0002wh-FU for submit@debbugs.gnu.org; Thu, 09 Feb 2017 17:53:19 -0500 Received: from mail-io0-f180.google.com ([209.85.223.180]:34933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbxaX-0002wV-Ud for 25665@debbugs.gnu.org; Thu, 09 Feb 2017 17:53:18 -0500 Received: by mail-io0-f180.google.com with SMTP id j18so35247287ioe.2 for <25665@debbugs.gnu.org>; Thu, 09 Feb 2017 14:53:17 -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=c+VqvnBwqutNnFlwl/y0C17Fe8rmK1BiDFDMDt+CoRs=; b=NZ+oXJmQpnDd4bwi9CH8lUENGENQKKVP4lz55dsvHUeIRvr4Csv44kGeMlgN1bsHJr fzDe9VHeFUxzVWpvCPOAIOnqXYYH3TGy7/NpgmIW7wb+d99P7l3aen20pn/TSlYICV9d z9sWGdV/ecJxA8EuoDU4mTrmEn3bUAWPEesL2LwE9XlGGU1NQOALPAYZd5aQZ0ivPjKd LF2rEEMoLdsGK3OKmD3Hb+wjyidX6Alf6sTQPGiq1jbog18rgFwPMRQFbteuuR28e0a4 6gbJsZvmaBPxDGH0lgLOTFU5avVQI+eqfMfwZcultbB4fkzmyuR9+njGaj1GdFo4aata jPag== 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=c+VqvnBwqutNnFlwl/y0C17Fe8rmK1BiDFDMDt+CoRs=; b=aCKEdolZiQUAq8AFdx4a6vkhQo2zv5uGGNmPgM+BdvO/ElwuTmXUoxfgPhLMBSwXNp cbNjUb8w9uMRNNATX1ag+4MJ5DrHxMk5owlG/g/enXRLm6gdgBuyvJPtTqKOJzUe2nXx 3SxbFK5qUCQ78a0CCJqnbpS9oWspCy4LL9SUQS5H2ZHvjaeLu6BwID/VSeUST7J8sbZv lK6ba4RtxKJ6CHOKjMkuegdjOY90ppKKlKANUsQziWF8Ingx2OGsPl0eFU98nTTb0QbM g1zX0Qn/QiKb2w2juXVkfnR4M/YIVCTNavmmc7oB4YO020eRsrX0t+PBdYu8yllQQa99 lKHA== X-Gm-Message-State: AMke39nholehO744Z2pGxFjgewxUYiRyqIXF2ltHy51rp0986X8JzoCMI3zYoqHPJUWT+A== X-Received: by 10.107.145.214 with SMTP id t205mr6221806iod.64.1486680792223; Thu, 09 Feb 2017 14:53:12 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id r192sm285721ita.13.2017.02.09.14.53.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Feb 2017 14:53:11 -0800 (PST) From: npostavs@users.sourceforge.net To: Tino Calancha Subject: Re: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command References: <8760kjz4nv.fsf@calancha-pc> Date: Thu, 09 Feb 2017 17:54:22 -0500 In-Reply-To: <8760kjz4nv.fsf@calancha-pc> (Tino Calancha's message of "Fri, 10 Feb 2017 01:53:56 +0900") Message-ID: <87inojm0v5.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 25665 Cc: 25665@debbugs.gnu.org, Chunyang Xu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) 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. 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. > > Having a short prompt is also good because there are more space > in the line for the command; Yes, it's better to keep the prompt short if possible. Still, having the extra feedback might be worth it. > a short prompt is also better while tipying > a long command: sometimes you want to change something at the beginning: > < ; `beginning-of-buffer' If the command is a single line, you can use C-a instead to avoid the prompt. > Now you need to `C-f' several times to jump out of the prompt. The more > verbose prompt, the more `C-f' you need. M-e leaves the prompt immediately. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 22:05:41 2017 Received: (at 25665) by debbugs.gnu.org; 10 Feb 2017 03:05:41 +0000 Received: from localhost ([127.0.0.1]:33644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc1Wm-00024F-Rj for submit@debbugs.gnu.org; Thu, 09 Feb 2017 22:05:41 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc1Wl-000240-At for 25665@debbugs.gnu.org; Thu, 09 Feb 2017 22:05:39 -0500 Received: by mail-pf0-f194.google.com with SMTP id e4so1489651pfg.0 for <25665@debbugs.gnu.org>; Thu, 09 Feb 2017 19:05:39 -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=eAW35IUt6lw0VJB93MhFhOeWHjwCwfmlZ8PUakZ3zBM=; b=qFDlEgnxO2ID/Gg8xvkgbckZID8eHeJeiaRD5jbOQzououYgFEIxBtvGV34PxxVUaa 8Jb4s38bByIHvFQ+WeBchTkBfefkNhtWmteE6NOgy34ucbEU9egdM/OnDD7n3q7mZdIE 5hlw/JnNiI0KytH+s1RkLrHt7lvP2+FzaqzmDSlSL8/WjUpgUwpXcENwb3hvu+UIBISa aaWDl2m8RywceuifI133AKSuSMsIAPWly1VSCvFHpYbBq9+LYnc+x81PapPJxtZBfRxc p8pCJFrF+VDnEEhBENyP84Dz4svLqCZs8I12TtgOKddM/Rwob2EmBTDwiC/hKZwXb0C+ HGFQ== 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=eAW35IUt6lw0VJB93MhFhOeWHjwCwfmlZ8PUakZ3zBM=; b=JHEJe0RfqbKmwvZmUb6flsAHLIQwwlBHtrehYf1TFqU+d+9YYZ91eCci9x6D3qGP9F wytC9BW221SP7MdNgdfCCPbpVnfRltCGXK+Mtey2bXuhVIGTeNW+RObRtnFjgZkz6nsS 8VTvlJPnnVc1p3MALMibJwYA6bbPDpy+GUCb31BERydIcyKpH3mlY6eR+y2T8ksqGMfN kHEQp8wVLoOsziVzlkz1GyCDIKmAny4nhfsO6dRH9Jsk518PBKNp42X/7aL4p4iwquFl wnb6n9wpy9qEVWQup/bcfUsUYSbrughN37i7Z4Tf4nX+opN3rlJYYlgYZ0BCJ+6as5B7 9SvA== X-Gm-Message-State: AMke39kdwxD4sFpjt2ooUBMpteb5vI+YwHJPth1OjYcokdunEn2VUD28M973JHC7QUjKgw== X-Received: by 10.99.145.68 with SMTP id l65mr7889516pge.12.1486695933521; Thu, 09 Feb 2017 19:05:33 -0800 (PST) Received: from calancha-pc (104.81.147.124.dy.bbexcite.jp. [124.147.81.104]) by smtp.gmail.com with ESMTPSA id b21sm411748pfl.87.2017.02.09.19.05.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2017 19:05:32 -0800 (PST) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Fri, 10 Feb 2017 12:05:29 +0900 (JST) X-X-Sender: calancha@calancha-pc To: npostavs@users.sourceforge.net Subject: Re: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command In-Reply-To: <87inojm0v5.fsf@users.sourceforge.net> Message-ID: References: <8760kjz4nv.fsf@calancha-pc> <87inojm0v5.fsf@users.sourceforge.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 25665 Cc: eliz@gnu.org, 25665@debbugs.gnu.org, Chunyang Xu , Drew Adams , Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) 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... ;-) > 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. 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 23:15:05 2017 Received: (at 25665) by debbugs.gnu.org; 10 Feb 2017 04:15:05 +0000 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 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 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) 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) From: npostavs@users.sourceforge.net To: Tino Calancha Subject: Re: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command References: <8760kjz4nv.fsf@calancha-pc> <87inojm0v5.fsf@users.sourceforge.net> Date: Thu, 09 Feb 2017 23:16:07 -0500 In-Reply-To: (Tino Calancha's message of "Fri, 10 Feb 2017 12:05:29 +0900 (JST)") Message-ID: <87a89un0jc.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 25665 Cc: eliz@gnu.org, 25665@debbugs.gnu.org, Chunyang Xu , Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 23:24:07 2017 Received: (at 25665) by debbugs.gnu.org; 10 Feb 2017 04:24:07 +0000 Received: from localhost ([127.0.0.1]:33660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc2kh-0003qr-38 for submit@debbugs.gnu.org; Thu, 09 Feb 2017 23:24:07 -0500 Received: from smtpbgbr2.qq.com ([54.207.22.56]:40788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc2kf-0003qH-K1 for 25665@debbugs.gnu.org; Thu, 09 Feb 2017 23:24:06 -0500 X-QQ-mid: bizesmtp4t1486700631tpi12az28 Received: from Chunyangs-MacBook-Air.local (unknown [114.236.198.223]) by esmtp4.qq.com (ESMTP) with id ; Fri, 10 Feb 2017 12:23:50 +0800 (CST) X-QQ-SSF: 0110000000000040F410B00A0000000 X-QQ-FEAT: mo1k4QclioRRsr+CQjp/ZdL40q0XvM+71QRGu0EkOJw2dcNzaGE0B2r8VSXCO zPzjYrq62GUOfKN+v0n6wkLjhWXC4doNo7TIodglsmwzKLx0VRMfJA58W9FIf8iMVXmkpaY j1Xe8pQ8zALIG6oqZR6I8zJ4b/wyZgcK+tEfATUwPDFvF9I/bZLC9sAl5c2Ozh4WAqTMF3+ ycd/d1q9ynEszQHHlaX4JCD2v24VO7V+L2l5SaxN7Z/vkdg2VT/4RLCeLHteYx78= X-QQ-GoodBg: 0 References: <8760kjz4nv.fsf@calancha-pc> <83r3373y3f.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 26.0.50.2 From: Chunyang Xu To: Eli Zaretskii Subject: Re: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command In-reply-to: <83r3373y3f.fsf@gnu.org> Date: Fri, 10 Feb 2017 12:23:54 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 25665 Cc: 25665@debbugs.gnu.org, Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) Eli Zaretskii writes: >> From: Tino Calancha >> Date: Fri, 10 Feb 2017 01:53:56 +0900 >> Cc: 25665@debbugs.gnu.org, tino.calancha@gmail.com >> >> 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. but many of these commands don't have a minibuffer prompt, such as 'C-x C-e', so we don't need to worry about them. I just notice that 'C-u C-s' ('isearch-forward') is also showing the meaning of prefix argument in the minibuffer prompt: C-s I-search: C-u C-s Regexp I-search: (of course you can think it is trying to use the same prompt as 'C-M-s') From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 02:13:38 2017 Received: (at 25665) by debbugs.gnu.org; 10 Feb 2017 07:13:38 +0000 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 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 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) 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) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Fri, 10 Feb 2017 16:13:26 +0900 (JST) X-X-Sender: calancha@calancha-pc To: npostavs@users.sourceforge.net Subject: Re: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command In-Reply-To: <87a89un0jc.fsf@users.sourceforge.net> Message-ID: References: <8760kjz4nv.fsf@calancha-pc> <87inojm0v5.fsf@users.sourceforge.net> <87a89un0jc.fsf@users.sourceforge.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 25665 Cc: eliz@gnu.org, 25665@debbugs.gnu.org, Chunyang Xu , Drew Adams , Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) 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: ~/ From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 11:19:28 2017 Received: (at 25665) by debbugs.gnu.org; 10 Feb 2017 16:19:28 +0000 Received: from localhost ([127.0.0.1]:34905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccDuy-0005mG-Hp for submit@debbugs.gnu.org; Fri, 10 Feb 2017 11:19:28 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:34473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccDuw-0005m3-H6 for 25665@debbugs.gnu.org; Fri, 10 Feb 2017 11:19:27 -0500 Received: by mail-oi0-f68.google.com with SMTP id w144so2868325oiw.1 for <25665@debbugs.gnu.org>; Fri, 10 Feb 2017 08:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=z1dScK7x0vkhUsxrdZtITUC1pIss+Lp5wdZQ2eWifqY=; b=t7L4aeE830X/vl5mA7fmOa5wz4evYzH55wgTTvsIJ2sf7lKoJpTsTZBYrFhlqd/o8E d66AM/XSoZm20GQ1WhxYep3wDD78q7V5zuvHQwAmcXKG6o8vX4PifDn/14FMKZ2EewSh Jmyw8l576fDjD7uwSkqqNwUH7O5RjOaxDfUKUX35F455plNgxNWvWSm6wsJN4muiYCk4 TYPOXsdNS90ghKLLd0PIbl1e3Pwp9ZH3R5Rq9+sbmu30ZisSR8XfnQ69RXjurEUxmYPr hLbkh45yQssHLAOPxM9TUCeJuTS0RURNhmPNcDXHKLZ45gLYYSLsUhjSWvT8f23w7Z3A 5w6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=z1dScK7x0vkhUsxrdZtITUC1pIss+Lp5wdZQ2eWifqY=; b=StIp46zEitB21zh/Y4IXPR1cWnVDp0zhHMpgPAygGlXFqr2jwwiZyerg4yBdK9Tky/ vxQtJ17mJ/+YqWQdmE8t9BxqpO9FJJcfSTUgoilehlG9jOVGLh4VQIn/YKrlGQ0INbRx my0811e2zPJDpqxSuud1MmYHcC2qtI2Y5Iu8ANHs/oF17dgLBLTc87IhcX78qt5GTIAU v3y0BV5lV1Ung+wRxxNs8zdymoLyUiKGATGG2NH7Xi1+ZPDRzp9y3xnp1Uz2DvDMBm6K 7YX9byyHum3lwYPL5qQxfGFG7VPVJZd/a+zSysp14tWMd8cKPVBd79YHG+YHykc0yopa sQVA== X-Gm-Message-State: AMke39ljbwLXIdvySVCCfWUmNZynew9AEjXu62R/ufJqyzVNt4PV8fUeE3nsV4rIYX5DW/pdur4FeOwGX5jAMQ== X-Received: by 10.202.62.138 with SMTP id l132mr5233573oia.128.1486743560959; Fri, 10 Feb 2017 08:19:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.21.117 with HTTP; Fri, 10 Feb 2017 08:19:20 -0800 (PST) In-Reply-To: References: <8760kjz4nv.fsf@calancha-pc> <87inojm0v5.fsf@users.sourceforge.net> <87a89un0jc.fsf@users.sourceforge.net> From: Noam Postavsky Date: Fri, 10 Feb 2017 11:19:20 -0500 X-Google-Sender-Auth: Uug-Ai8wEmEGj5gMrnkiHb3Se_g Message-ID: Subject: Re: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command To: Tino Calancha Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 25665 Cc: Eli Zaretskii , 25665@debbugs.gnu.org, Chunyang Xu , Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On Fri, Feb 10, 2017 at 2:13 AM, Tino Calancha wrote: >>> 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: ~/ I think this would fall under the case of too difficult to summarize into a prompt concisely. Furthermore, C-x C-s does not usually prompt at all so there is not much benefit anyway. But I would not object if someone could come up with reasonably short and informative modifications to the prompts. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 19:04:53 2019 Received: (at 25665) by debbugs.gnu.org; 24 Jun 2019 23:04:53 +0000 Received: from localhost ([127.0.0.1]:58306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfY17-0003c1-Jj for submit@debbugs.gnu.org; Mon, 24 Jun 2019 19:04:53 -0400 Received: from quimby.gnus.org ([80.91.231.51]:38064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfY16-0003bt-8U for 25665@debbugs.gnu.org; Mon, 24 Jun 2019 19:04:52 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfY12-0000Q2-SW; Tue, 25 Jun 2019 01:04:51 +0200 From: Lars Ingebrigtsen To: Tino Calancha Subject: Re: bug#25665: 26.0.50; [PATCH] Indicate prefix arg in minibuffer prompt for shell-command References: <8760kjz4nv.fsf@calancha-pc> Date: Tue, 25 Jun 2019 01:04:48 +0200 In-Reply-To: <8760kjz4nv.fsf@calancha-pc> (Tino Calancha's message of "Fri, 10 Feb 2017 01:53:56 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tino Calancha writes: >> When using 'C-u M-!' ('shell-command') I feel confident if the >> minibuffer prompt becomes >> >> Shell command and insert output: >> >> since it explains the purpose of the prefix argument. The sa [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25665 Cc: 25665@debbugs.gnu.org, Chunyang Xu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tino Calancha writes: >> When using 'C-u M-!' ('shell-command') I feel confident if the >> minibuffer prompt becomes >> >> Shell command and insert output: >> >> since it explains the purpose of the prefix argument. The same thing >> goes for 'M-&' ('async-shell-command') and 'M-|' >> ('shell-command-on-region'). > 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. There didn't seem to be much enthusiasm for the proposed change, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 19:05:01 2019 Received: (at control) by debbugs.gnu.org; 24 Jun 2019 23:05:01 +0000 Received: from localhost ([127.0.0.1]:58309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfY1E-0003cL-Rx for submit@debbugs.gnu.org; Mon, 24 Jun 2019 19:05:00 -0400 Received: from quimby.gnus.org ([80.91.231.51]:38080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfY1C-0003cC-S0 for control@debbugs.gnu.org; Mon, 24 Jun 2019 19:04:59 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfY1A-0000QA-Dw for control@debbugs.gnu.org; Tue, 25 Jun 2019 01:04:58 +0200 Date: Tue, 25 Jun 2019 01:04:56 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #25665 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 25665 wontfix close 25665 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 25665 wontfix close 25665 quit From unknown Mon Jun 16 23:51:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 23 Jul 2019 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator