bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27979: tab completion for "(yes or no)?"


From: Tino Calancha
Subject: bug#27979: tab completion for "(yes or no)?"
Date: Sun, 06 Aug 2017 15:59:33 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

積丹尼 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 via email to

[Prev in Thread] Current Thread [Next in Thread]