From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66069 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel,gmane.emacs.xemacs.beta Subject: Re: Do we need gnus-yes-or-no-p and gnus-y-or-n-p? Date: Mon, 07 Jan 2008 15:34:43 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199687708 18225 80.91.229.12 (7 Jan 2008 06:35:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 06:35:08 +0000 (UTC) Cc: ding@gnus.org To: emacs-devel@gnu.org, xemacs-beta@xemacs.org Original-X-From: ding-owner+M14562@lists.math.uh.edu Mon Jan 07 07:35:29 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JBla4-0006EF-UK for ding-account@gmane.org; Mon, 07 Jan 2008 07:35:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JBlZg-0005df-QK; Mon, 07 Jan 2008 00:35:04 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JBlZf-0005dP-HI for ding@lists.math.uh.edu; Mon, 07 Jan 2008 00:35:03 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JBlZe-0000Az-7z for ding@lists.math.uh.edu; Mon, 07 Jan 2008 00:35:03 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JBlZe-0003Eu-00 for ; Mon, 07 Jan 2008 07:35:02 +0100 Original-Received: from [66.225.201.151] (port=54620 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1JBlZY-0000gz-C1; Mon, 07 Jan 2008 00:34:56 -0600 X-Hashcash: 1:20:080107:emacs-devel@gnu.org::Gp0gqTsm3ROFsNhV:000000000000000000000000000000000000000000DJBk X-Hashcash: 1:20:080107:xemacs-beta@xemacs.org::vLSQJboQP3Lt6nCy:0000000000000000000000000000000000000001KUZ X-Hashcash: 1:20:080107:ding@gnus.org::fxiPuaCvG7R+5pdf:00006dTK X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:h4T7kje4kgMNnPSO7QeLNM+/9yA= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66069 gmane.emacs.devel:86436 gmane.emacs.xemacs.beta:26699 Archived-At: Hi, In the Gnus mailing list, now it is being discussed whether the behavior of `y-or-n-p' that it does not clear the echo area is intentional. While `yes-or-no-p' clears the question and the answer in the echo area after entering `y e s' or `n o' and RET, `y-or-n-p' does not do so after entering `y' or `n'. E.g.: (defun foo () "Switch to buffer named foo." (interactive) (when (y-or-n-p "Switch to buffer foo? ") (switch-to-buffer "foo"))) (Please try it with `yes-or-no-p' as well.) The behavior of `y-or-n-p' that it doesn't clear the question and the answer is not serious of course, but I feel it is not cool. Lars seems to have felt it like me and introduced the function `gnus-y-or-n-p' in February, 1995: (defun gnus-y-or-n-p (prompt) (prog1 (y-or-n-p prompt) (message ""))) Currently, it is commented out in the trunk by Reiner Steib. He also wrote the benefit of leaving the question and the answer in the echo area as follows: (http://article.gmane.org/gmane.emacs.gnus.general/66061) > In contrast to yes-or-no-p it is much easier to type y, n, > SPC, DEL, etc accidentally, so it might be useful for the user > to see what he has typed. (You can read the whole thread in: http://news.gmane.org/group/gmane.emacs.gnus.general/thread=65099/force_load=t) But I like the behavior that it clears the echo area like `yes-or-no-p', even if it is a side effect of the RET key. Could someone draw the conclusion? And if it is regarded as a bug, I hope it is fixed in the future (in that case, we need to uncomment `gnus-y-or-n-p' for old Emacsen). Regards,