From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Re: yes-or-no-p prompt conditionally broken in master? Date: Thu, 03 Sep 2015 21:26:53 +0200 Message-ID: <87egifqp6q.fsf@mbork.pl> References: <83k2s7a247.fsf@gnu.org> <55E88336.5060703@yandex.ru> <83h9nb9z5l.fsf@gnu.org> <55E8879B.9050107@yandex.ru> <87lhcnqsc6.fsf@mbork.pl> <55E8908F.5000201@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441308461 4732 80.91.229.3 (3 Sep 2015 19:27:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2015 19:27:41 +0000 (UTC) To: Eli Zaretskii , kaushal.modi@gmail.com, monnier@iro.umontreal.ca, bruce.connor.am@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 03 21:27:35 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZXaAX-0000e3-29 for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2015 21:27:33 +0200 Original-Received: from localhost ([::1]:51339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXaAX-0006Ag-2Y for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2015 15:27:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXaAH-00068U-T4 for emacs-devel@gnu.org; Thu, 03 Sep 2015 15:27:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXaAG-0007kD-RR for emacs-devel@gnu.org; Thu, 03 Sep 2015 15:27:17 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:56549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXaAC-0007ix-UX; Thu, 03 Sep 2015 15:27:13 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 79D596F2005; Thu, 3 Sep 2015 21:27:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PkatsALthfz7; Thu, 3 Sep 2015 21:26:59 +0200 (CEST) Original-Received: from localhost (103-115.echostar.pl [213.156.103.115]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 9CF8E6F2003; Thu, 3 Sep 2015 21:26:58 +0200 (CEST) In-reply-to: <55E8908F.5000201@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189552 Archived-At: On 2015-09-03, at 20:25, Dmitry Gutov wrote: > On 09/03/2015 09:18 PM, Marcin Borkowski wrote: > >> The whole point of yes-or-no-p is to make user type something less >> convenient (and less probable to hit accidentally) then just `y'. > > And as a power user, I've found it immensely useful not to type that > "less convenient" thing. If it were a problem in my usage, I'd probably > have noticed. I understand. (In fact, AFAIK, confirm-kill-emacs is the only place I ever used yes-or-no-p, and quite often I disable even y-or-n-p, e.g. in the case of (setq TeX-save-query nil). OTOH, being a power user does not help _at all_ when e.g. working on someone else's computer with a different keyboard. ;-) >> FWIW, I have (setq confirm-kill-emacs #'yes-or-no-p) in my init.el. >> I just can't count the times I pressed C-x C-c by mistake. > > It's a personal choice. I don't kill Emacs too often by mistake, and > even if I press that conbination, usually I would be greeted with > prompts about modified buffers and running processes. You're probably right. It's an ancient setting in my init.el, and most probably I don't need it anymore. When I was a beginner, though, it happened to me all the time, and I deeply appreciated the sheer existence of both y-or-n-p and yes-or-no-p. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University