unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: 19467@debbugs.gnu.org
Subject: bug#19467: 25.0.50; Default arguments for 'yes-or-no-p'
Date: Mon, 29 Dec 2014 23:09:12 +0100	[thread overview]
Message-ID: <CAH8Pv0gzMPd_VkY2jEvZ9gVavBTd+ZvWzJHH6O6=pJCkYiR4-w@mail.gmail.com> (raw)
In-Reply-To: <c6665f21-8cc2-493e-a6e8-b14bb0ab18e6@default>

On Mon, Dec 29, 2014 at 10:32 PM, Drew Adams <drew.adams@oracle.com> 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".

-- 
Dani Moncayo





  reply	other threads:[~2014-12-29 22:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-29 19:32 bug#19467: 25.0.50; Default arguments for 'yes-or-no-p' Dani Moncayo
2014-12-29 21:32 ` Drew Adams
2014-12-29 22:09   ` Dani Moncayo [this message]
2019-08-21  0:04 ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH8Pv0gzMPd_VkY2jEvZ9gVavBTd+ZvWzJHH6O6=pJCkYiR4-w@mail.gmail.com' \
    --to=dmoncayo@gmail.com \
    --cc=19467@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).