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 17:54:22 -0500 Message-ID: <87inojm0v5.fsf@users.sourceforge.net> References: <8760kjz4nv.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486680859 7326 195.159.176.226 (9 Feb 2017 22:54:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2017 22:54:19 +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 Thu Feb 09 23:54:15 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 1cbxbQ-0001ZQ-SO for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Feb 2017 23:54:12 +0100 Original-Received: from localhost ([::1]:40661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbxbW-0000xx-CT for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Feb 2017 17:54:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbxbL-0000wP-V8 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 17:54:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbxbG-0004vk-7S for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 17:54:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35358) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbxbG-0004vd-3t for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 17:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cbxbF-0002xf-Lf for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 17:54:01 -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: Thu, 09 Feb 2017 22:54:01 +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.148668079911331 (code B ref 25665); Thu, 09 Feb 2017 22:54:01 +0000 Original-Received: (at 25665) by debbugs.gnu.org; 9 Feb 2017 22:53:19 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: <8760kjz4nv.fsf@calancha-pc> (Tino Calancha's message of "Fri, 10 Feb 2017 01:53:56 +0900") 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:129168 Archived-At: 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.