From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#19467: 25.0.50; Default arguments for 'yes-or-no-p' Date: Wed, 21 Aug 2019 02:04:01 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="114947"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 19467@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 21 02:05:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i0E7k-000Tlz-84 for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Aug 2019 02:05:12 +0200 Original-Received: from localhost ([::1]:42948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0E7i-0003Pj-GA for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Aug 2019 20:05:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50592) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0E7b-0003P2-Md for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 20:05:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0E7a-0005dY-MP for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 20:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53651) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0E7a-0005dK-JE for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 20:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i0E7a-0003ce-CE for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 20:05:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Aug 2019 00:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19467 X-GNU-PR-Package: emacs Original-Received: via spool by 19467-submit@debbugs.gnu.org id=B19467.156634586013871 (code B ref 19467); Wed, 21 Aug 2019 00:05:02 +0000 Original-Received: (at 19467) by debbugs.gnu.org; 21 Aug 2019 00:04:20 +0000 Original-Received: from localhost ([127.0.0.1]:34239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0E6u-0003ba-78 for submit@debbugs.gnu.org; Tue, 20 Aug 2019 20:04:20 -0400 Original-Received: from mail-pl1-f174.google.com ([209.85.214.174]:36852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0E6r-0003bD-Vb for 19467@debbugs.gnu.org; Tue, 20 Aug 2019 20:04:18 -0400 Original-Received: by mail-pl1-f174.google.com with SMTP id f19so294229plr.3 for <19467@debbugs.gnu.org>; Tue, 20 Aug 2019 17:04:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=3w3B7xunjvPzmJAwmTiaZb6sYHZPIoh1TLP+bAAIKE4=; b=j2wcwBexGaB1WrRputsIOXWzb8oKrrAQN0ChpkcCU8cabM0NvdtH1o80IeQbvBqGpg sARg3XD3FZVmuqbWo31EVxh8uCfHyI3s1yfWShyPWJEp/CWieg4oE/gzEPD0wl/iQctN lrVxDLDWHhWDBTc55BvsOEbk3UUSnHC+LyOq4cqC5IStGjkEbGsIrpMXSfayxfdKnlu4 lByncWvyvHTLFFiv01rwbfSomiSFCAPniZY1O3Qxmt4ZTyiWMYw0XcdTDBp+FJTbey8i mAiLfUyB7ZEnDcGDPaZoqXAqrmPSuqIyWxGbV8vaqJw4ilrUkfYpuUX7ikapYDYyCjo2 QuOA== X-Gm-Message-State: APjAAAXZPq+R5G7+8hmFaX8Gu8jwewun7v3BtBRc8/1jhOh52GXQQ/6X Z/ZRoPOSmOS1Hus2kxuglSBN59gfVjIeUc6urYA= X-Google-Smtp-Source: APXvYqwBc02uBEvvhha4SAYza3+kVpbh+oOijRw3IYNNMDuQzsM/0jGjRV8ZGS+NIRLz1P2Z43Jkp/0fTGAWDDpX2iA= X-Received: by 2002:a17:902:29eb:: with SMTP id h98mr31780259plb.128.1566345852300; Tue, 20 Aug 2019 17:04:12 -0700 (PDT) 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: 209.51.188.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:165455 Archived-At: tags 19467 + wontfix close 19467 quit Dani Moncayo writes: > On Mon, Dec 29, 2014 at 10:32 PM, Drew Adams wrote: >>> I'd like I could choose the "yes"/"no" answer via M-n/M-p (as >>> alternative to typing the answer directly in the minibuffer). >> >> FWIW, that defeats the purpose/intention of `yes-or-no-p'. >> We have `y-or-n-p' for quick response. The point of >> `yes-or-no-p' is presumably to slow you down and make you >> work a bit, so you take the question seriously. ;-) > > I agree wrt the intention of 'yes-or-no-p': force the user to think > the answer well. But IMO: > > 1. Looking for a default value with "M-n... RET" entails some work; > it's not something inmediate like a single keystroke (as in > 'y-or-n-p'). > > 2. The behavior I'm requesting feels quite natural to me: When Emacs > asks for input with a minibuffer and there are a few valid (or even > typical) values, those values are available in the minibuffer > "future history". I think this would be a misfeature. It would be too easy for a user to answer the wrong thing in response to important questions such as "Do you really want to delete this file?" by muscle memory M-p RET. Additionally, as Drew points out above, we already have y-or-n-p which is better for users that wish to answer these prompts quickly. I for one have used this in my init file for as long as I can remember: (fset 'yes-or-no-p 'y-or-n-p) I'm therefore closing this as wontfix. If anyone disagrees with that, please feel free to re-open. Thanks, Stefan Kangas