unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 27979@debbugs.gnu.org
Subject: bug#27979: tab completion for "(yes or no)?"
Date: Sun, 06 Aug 2017 15:59:33 +0900	[thread overview]
Message-ID: <87r2wp6v1m.fsf@calancha-pc> (raw)
In-Reply-To: <87lgmxh6w5.fsf@jidanni.org> ("積丹尼 Dan Jacobson"'s message of "Sun, 06 Aug 2017 08:33:30 +0800")

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> You know those programs that ask you "(yes or no)?"
> Well wouldn't it be great if one could hit y<TAB> and then it would
> become "yes" etc.
>
> Ah, yes-or-no-p is a built-in function in ‘C source code’.
IMO, Emacs prefers `yes-or-no-p' for dangerous actions, and it
uses `y-or-n-p' for safe ones.  I think this is good, to protect
beginners from lost important data; offering TAB completion would
somehow contradict this idiom.

Some experts have in their Emacs init file:
(fset 'yes-or-no-p 'y-or-n-p)

;; So that they will be prompted with (y or n).






  reply	other threads:[~2017-08-06  6:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-06  0:33 bug#27979: tab completion for "(yes or no)?" 積丹尼 Dan Jacobson
2017-08-06  6:59 ` Tino Calancha [this message]
2017-08-06 15:07   ` Drew Adams
2017-08-06 15:20     ` Tino Calancha
2017-08-06 15:46       ` Drew Adams
2017-08-06 16:05         ` Tino Calancha
2017-08-06 16:48           ` Drew Adams
2017-08-06 20:34             ` Drew Adams
2017-08-06 16:49   ` Eli Zaretskii
2017-08-06 12:52 ` 積丹尼 Dan Jacobson
2017-08-06 13:02   ` Tino Calancha
2017-08-06 13:59     ` Tino Calancha
2017-08-06 16:15 ` 積丹尼 Dan Jacobson
2017-08-06 17:08   ` Eli Zaretskii
2017-08-06 16:58 ` 積丹尼 Dan Jacobson

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=87r2wp6v1m.fsf@calancha-pc \
    --to=tino.calancha@gmail.com \
    --cc=27979@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    /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).