From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#27979: tab completion for "(yes or no)?" Date: Mon, 7 Aug 2017 01:05:46 +0900 (JST) Message-ID: References: <87lgmxh6w5.fsf@jidanni.org> <87r2wp6v1m.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-259501286-1502035549=:15439" X-Trace: blaine.gmane.org 1502035574 9147 195.159.176.226 (6 Aug 2017 16:06:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2017 16:06:14 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Tino Calancha , 27979@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 06 18:06:10 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 1deO46-00021o-G2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Aug 2017 18:06:06 +0200 Original-Received: from localhost ([::1]:33691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deO4C-0004RD-Px for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Aug 2017 12:06:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deO46-0004Ql-TV for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 12:06:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deO42-0005rF-TF for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 12:06:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42223) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1deO42-0005r7-Oz for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 12:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1deO42-0001fa-Aq for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 12:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Aug 2017 16:06: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.15020355586408 (code B ref 27979); Sun, 06 Aug 2017 16:06:02 +0000 Original-Received: (at 27979) by debbugs.gnu.org; 6 Aug 2017 16:05:58 +0000 Original-Received: from localhost ([127.0.0.1]:44900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deO3y-0001fH-Bj for submit@debbugs.gnu.org; Sun, 06 Aug 2017 12:05:58 -0400 Original-Received: from mail-pf0-f177.google.com ([209.85.192.177]:35439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deO3w-0001f3-6h for 27979@debbugs.gnu.org; Sun, 06 Aug 2017 12:05:56 -0400 Original-Received: by mail-pf0-f177.google.com with SMTP id t86so24886103pfe.2 for <27979@debbugs.gnu.org>; Sun, 06 Aug 2017 09:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=nkXHqrBxqQjQixLDPOQwMKHRgKLcWBQPDFIJj9N6/fo=; b=m8CPP23nmXjSg5m8zCtQdRLQ7PMZgMfP2C8MYSoll1I2ogQPvQTW0l/SWvliQIM+oK wGhenUu+SwICyJMCYlsfl7kfLtHgQHGQYmfEl4NTgvXVEJJwsQUZGhLPO+gYXW0UJ07i SOtOTS8LVJVCq4T83jpe3Eflglbtu0f1fhAlwzQvm3ZPbTW752fHGVGMCT2I87P1rMc/ hgMq4K+a/mrXCy5/4TaIR2VRAmVWeaCfAMiLWHEdcGwK73gKq2Lq6yvfJTQmchZFRqwE 86drd0Nf/eu6rju22bMcP5k7e7IRoLPHkHpVmKnelIfqSWfZejTusT30d1rBV8L5RYGK DAEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=nkXHqrBxqQjQixLDPOQwMKHRgKLcWBQPDFIJj9N6/fo=; b=qeYav1W7jbkxukCIR+lSqFkKVu3ZkRtCk1/eZ3pilXbea9VUP+wmucHH7r6nR9SZJO MvkT3YVnoYoaGOutOqt/1I/Hg5JGrlWQEhDv2C3D8JZVpWkFXVxcQWYWCl0wz0pTkmrb ftZZbtkFQs/cwS6KXrhuPFwDTm3VpBcADWKLL/bqmsBXi1TI/VbHJEDjeKVwYeCY8Bo+ Q12yo7n360iCAl1wB79VC+vGU1rnInkNKuaFuszlblv9qbj7guQkte2xmwZP436qFLLc pc5KzK58izmifx3vRURe9DLCNDvWYH5aG8JnzfkyVWR29djkniAHi3zjXWN2a4CI1pn3 I34w== X-Gm-Message-State: AIVw110brhR1/y4LmUpc3bcFiyHleb5r2rAVTQeniLozEw8fm2QcnkYW 3bI7Y4Y3uD5IBw== X-Received: by 10.98.220.22 with SMTP id t22mr9076282pfg.301.1502035550328; Sun, 06 Aug 2017 09:05:50 -0700 (PDT) Original-Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170]) by smtp.gmail.com with ESMTPSA id a125sm9004664pgc.37.2017.08.06.09.05.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Aug 2017 09:05:49 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: 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:135500 Archived-At: --8323329-259501286-1502035549=:15439 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT On Sun, 6 Aug 2017, Drew Adams wrote: >>>> 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. ;-) >> >> 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. That's the reason i didn't want to admit i am one of those guys overwritting 'yes-or-no-p'. I tried to kept secret. I want to be pedagogical with this topic: i cannot say don't do this thing that i am doing (maybe because i am not father yet...). So, please Dan, don't use it! Plese write 'yes' or 'no'. It's for your safety. Someone from my circle lost important deta doing 'rm -rf' without too much care. Yeah, we must never encourage such bad habits. I agree with you: to use such things, as 'rm -rf' or `y-or-no-p' as `yes-or-no-p' a long way must be walked (usualy with mistakes too). Now some optimistic comment: IIRC, Newton suffered a fire in his home destroying all his notes. After that he rewrote everything from his head and published 'PhilosophiƦ Naturalis Principia Mathematica'. The most important is that we don't delete our heads. I suffered car accidents after i got confident enough. Yes, too much confident might decrease natural instinct brakes. It's also true that after the accidents i became a better driver. We learn everyday. --8323329-259501286-1502035549=:15439--