From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#21396: 25.0.50; read-key's prompt is not visible Date: Thu, 03 Sep 2015 20:42:05 +0200 Message-ID: <87zj13fipu.fsf@gnu.org> References: <87wpw91h2k.fsf@gnu.org> <87egifgzog.fsf@gnu.org> <83d1xz9xjz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441305803 24676 80.91.229.3 (3 Sep 2015 18:43:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2015 18:43:23 +0000 (UTC) Cc: 21396@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 03 20:43:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZXZTZ-00060C-TZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Sep 2015 20:43:10 +0200 Original-Received: from localhost ([::1]:51087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXZTZ-0000t8-Pu for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Sep 2015 14:43:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXZTW-0000sy-Oe for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 14:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXZTR-0005ys-Ss for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 14:43:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXZTR-0005ya-PB for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 14:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZXZTR-0001E2-KY for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 14:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Sep 2015 18:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21396 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21396-submit@debbugs.gnu.org id=B21396.14413057314651 (code B ref 21396); Thu, 03 Sep 2015 18:43:01 +0000 Original-Received: (at 21396) by debbugs.gnu.org; 3 Sep 2015 18:42:11 +0000 Original-Received: from localhost ([127.0.0.1]:47910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXZSd-0001Cw-6X for submit@debbugs.gnu.org; Thu, 03 Sep 2015 14:42:11 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:35566) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXZSb-0001Cp-JX for 21396@debbugs.gnu.org; Thu, 03 Sep 2015 14:42:10 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 12FA7233C9 for <21396@debbugs.gnu.org>; Thu, 3 Sep 2015 14:42:09 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 03 Sep 2015 14:42:09 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=Eh/0WusCoj5ns1tO37iCtjkaCPY=; b=rV5Zt i4mb48gEHbXC9vXTxK5cHrQRurzwtAsBCEQjm4T0d9g7opY5HHmaiMbgj79NZudz GgtPaE2pqZMMXBq0sxucB5f71o9MU0Q4TcKa9n8B5rRhYwB6MwisIuJXCMpG6c5w YSnEzxUuY0aSlrFMBG9SnoKJ6ujwqhUhE+GtUQ= X-Sasl-enc: jXnj1+3hSH6QByk4ZOyE7dINiIxLUcRKDWYR9isFaSTI 1441305728 Original-Received: from thinkpad-t440p (unknown [2.160.253.220]) by mail.messagingengine.com (Postfix) with ESMTPA id D9BDF6800F0; Thu, 3 Sep 2015 14:42:07 -0400 (EDT) In-Reply-To: <83d1xz9xjz.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Sep 2015 21:18:08 +0300") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106123 Archived-At: Eli Zaretskii writes: >> >> 1. emacs -Q >> >> 2. eval (read-key "Gimme Key: ") in *scratch* >> >> the key will be read but the prompt is not shown in the minibuffer >> > [...] >> >> commit 5dc644a6b01e2cf950ff617ab15be4bf1917c38c >> >> Author: Stefan Monnier >> >> Date: Tue Sep 1 21:14:18 2015 -0400 >> >> Generalize the prefix-command machinery of C-u >> > >> > Hmm... I'll look into it. >> >> Great, thanks. Meanwhile others have seen that issue, too. See the >> thread on emacs-devel. > > I really hope Stefan will NOT fix this. It's IMO the wrong way of > dealing with such issues. > > If typing yes is too much in some situations, and just y is > enough, we should not call yes-or-no-p in those situations. AFAIU, > the only reason to call the latter is when the question is about > some serious matter, so we want to avoid the possibility of mistakenly > pressing just one (wrong) key. So if some of these situations aren't > so grave, let's call y-or-n-p instead. > > And if there are people who still want to press y or n, even when they > might err and pay dearly for their mistakes, then we could have an > option to have yes-or-no-p call y-or-n-p instead. > > But using a defalias here is a kludge; asking Emacs maintenance to > support such kludges means extra overhead and tricky code for no good > reason. I think we should simply say no to such requests. We have > more than enough work on our hands already, no need for gratuitous > additions, thank you. I'm guilty of having (fset 'yes-or-no-p 'y-or-n-p) in my ~/.emacs, too, but what does this have to do with this issue? The problem is that no prompt of any `read-key' is visible, `y-or-n-p' is just the most prominent place where this pops up. Bye, Tassilo