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: Sun, 06 Aug 2017 15:59:33 +0900 Message-ID: <87r2wp6v1m.fsf@calancha-pc> References: <87lgmxh6w5.fsf@jidanni.org> 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 1502002814 9806 195.159.176.226 (6 Aug 2017 07:00:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2017 07:00:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27979@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 06 09:00:08 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 1deFXj-0002B3-HZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Aug 2017 09:00:07 +0200 Original-Received: from localhost ([::1]:60391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deFXp-0007EI-R0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Aug 2017 03:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deFXk-0007C4-1x for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 03:00:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deFXf-0001su-23 for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 03:00:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41377) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1deFXe-0001se-Tf for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 03:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1deFXe-0003hM-N2 for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 03:00: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 07:00: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.150200278914160 (code B ref 27979); Sun, 06 Aug 2017 07:00:02 +0000 Original-Received: (at 27979) by debbugs.gnu.org; 6 Aug 2017 06:59:49 +0000 Original-Received: from localhost ([127.0.0.1]:44054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deFXR-0003gK-CG for submit@debbugs.gnu.org; Sun, 06 Aug 2017 02:59:49 -0400 Original-Received: from mail-pg0-f41.google.com ([74.125.83.41]:38223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deFXP-0003g5-Ks for 27979@debbugs.gnu.org; Sun, 06 Aug 2017 02:59:48 -0400 Original-Received: by mail-pg0-f41.google.com with SMTP id l64so22567132pge.5 for <27979@debbugs.gnu.org>; Sat, 05 Aug 2017 23:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=JJpu614PPBzZO5o2IJ7OT9TOVdpkWL76ruEcPS5fKow=; b=KtX9SVb2W31ik5vTSS++IQ3quKx84rq8QrqzlqlBFw9DeoHMg8rBU/8kkDjyXq3mTW tphenYzVcxmXNS8W74+vIW7Hb+mvyMev6v923hGcbKAue5JfC36w1V8L+WB87/JC9nPU Gvr7TpB+9sqCisfEaMQmhVjsIiq5Cimvi6A1WdKZBkJT+YukcL/LbtkuYorjl5WQ9nj3 TBoQSBo8ludByAixX2mXS4cYjf5PNDE0qM1/xfN1wHNDllAsbrrJsnCp5civaiZ7wMtq Nd+RM5Y9SdBxTVzWy4rmE5wTpIqj8Z5ocgwewb7ZRa74zZAuvgyr9y+TJd6BJKABOy95 5F2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=JJpu614PPBzZO5o2IJ7OT9TOVdpkWL76ruEcPS5fKow=; b=c/ZLscGmB2SqvYF9fAceekxxVkWokiMO4Qgop6yXhYIxbBK0IWiP87/VF4iRkNn49j 6YUvcJmurgCbaMaaqX7AWgbdYbh3Ygj2vWT0cIEdOJtl4xNXX6ZjM0fC2rVUZoytWw+8 vbsy4pApjpBNc8JhINSZCkUTJ0D6jspWeXd0vJjGt2U+KrVFK6ROeMZbxvOa7cETr/42 hjUBS0pgbS2KdQphj5S5/KBVgl1vSLix6N9jZXi/09KIQPKzlwezr/3I5nCcUSGUHmJH G9Ix6JjUejXO9Mn9TfjE46rEcylmn5Yp/JwnUKw8xhRGPOzFCbUK5DAzc9sVt+KY7w8t VxbQ== X-Gm-Message-State: AIVw113RuG8GQ4/9Oj6/zBLGSH/enGXuXTjNF6xqHJsX6G7kK1tznvhA KPSr8Q0+iwzE802B X-Received: by 10.98.204.10 with SMTP id a10mr8062530pfg.332.1502002781406; Sat, 05 Aug 2017 23:59:41 -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 p10sm9420861pfk.103.2017.08.05.23.59.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Aug 2017 23:59:40 -0700 (PDT) In-Reply-To: <87lgmxh6w5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Sun, 06 Aug 2017 08:33:30 +0800") 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:135477 Archived-At: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > You know those programs that ask you "(yes or no)?" > Well wouldn't it be great if one could hit y and then it would > become "yes" etc. > > Ah, yes-or-no-p is a built-in function in =E2=80=98C source code=E2=80=99. 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).