From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#27979: tab completion for "(yes or no)?" Date: Sun, 6 Aug 2017 08:46:14 -0700 (PDT) Message-ID: References: <87lgmxh6w5.fsf@jidanni.org> <87r2wp6v1m.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1502034439 16455 195.159.176.226 (6 Aug 2017 15:47:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2017 15:47:19 +0000 (UTC) Cc: 27979@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 06 17:47:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deNln-0003qI-SH for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Aug 2017 17:47:11 +0200 Original-Received: from localhost ([::1]:33552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deNlt-0006wR-Uo for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Aug 2017 11:47:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deNlh-0006w3-N5 for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 11:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deNle-0004VA-JU for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 11:47:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42212) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1deNle-0004Ud-G2 for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 11:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1deNle-00018G-3f for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 11:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Aug 2017 15:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27979 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27979-submit@debbugs.gnu.org id=B27979.15020343874300 (code B ref 27979); Sun, 06 Aug 2017 15:47:02 +0000 Original-Received: (at 27979) by debbugs.gnu.org; 6 Aug 2017 15:46:27 +0000 Original-Received: from localhost ([127.0.0.1]:44889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deNl5-00017I-8d for submit@debbugs.gnu.org; Sun, 06 Aug 2017 11:46:27 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:35874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deNl4-000174-0M for 27979@debbugs.gnu.org; Sun, 06 Aug 2017 11:46:26 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v76FkJPF022841 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 6 Aug 2017 15:46:19 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v76FkJSE014078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 6 Aug 2017 15:46:19 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v76FkFda002668; Sun, 6 Aug 2017 15:46:15 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6774.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] 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: 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" Xref: news.gmane.org gmane.emacs.bugs:135499 Archived-At: > >> 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). > > > > More newbies than experts, methinks. ;-) >=20 > I have: (defalias 'yes-or-no-p 'y-or-n-p) > so i am neither expert nor beginner (an outsider > or a secret agent, maybe). Actually, my reply was partly to discourage a possible misimpression that such an alias is a sign of expertise or will likely increase expertise. (Not that you suggested any such thing.) But mainly: even (some) experts can benefit from having to type `yes', and few (I think) really gain much by just hitting `y'. It's a cost/benefit thing. If you never hit `y' accidentally or too quickly in a critical situation then the gain of not typing `es' and not hitting `RET' is maybe worth it (maybe not). If you do ever make such a mistake then the cost can be great. Experts (however defined) generally have more pilot hours, and so are more likely to have been through a few such crises and perhaps learned from them to be careful. A newbie, whether driving a car or driving Emacs, can, from lack of such unfortunate experiences, sometimes be overconfident and think that some things, like looking in the rear-view mirror or not texting, are just an unnecessary bother - something only "newbies" really need. Having a few accidents can do wonders for teaching the value of paying attention. Wrt driving, a recent US study pointed out that the youngest drivers (e.g. 16 years old) are much more careful than are those who are just a little bit older (e.g. 17 years old) - much more likely to drive slower, to pay attention to other cars, not to text, etc. IOW, a little experience/knowledge can be a dangerous thing. Telling new drivers that some "expert" drivers never need to look in the rear-view mirror would not be a great thing to do (IMO). And I doubt that it would be true that some expert drivers never do look in the mirror.