From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65974 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Do we need gnus-yes-or-no-p and gnus-y-or-n-p? Date: Mon, 17 Dec 2007 10:44:06 +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 1197855934 10379 80.91.229.12 (17 Dec 2007 01:45:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2007 01:45:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14468@lists.math.uh.edu Mon Dec 17 02:45:45 2007 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 1J4538-00014E-Rn for ding-account@gmane.org; Mon, 17 Dec 2007 02:45:43 +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 1J451u-0006sS-RE; Sun, 16 Dec 2007 19:44:26 -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 1J451s-0006sC-10 for ding@lists.math.uh.edu; Sun, 16 Dec 2007 19:44:24 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1J451l-0001LU-Mt for ding@lists.math.uh.edu; Sun, 16 Dec 2007 19:44:23 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1J451j-0002a0-00 for ; Mon, 17 Dec 2007 02:44:15 +0100 Original-Received: from [66.225.201.151] (port=47343 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1J451f-0003oN-KT for ding@gnus.org; Sun, 16 Dec 2007 19:44:12 -0600 X-Hashcash: 1:20:071217:ding@gnus.org::o8zw6TfCXH+Cqn7T:00003+j3 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.60 (gnu/linux) Cancel-Lock: sha1:iTh7Bnxd2ka4I7HMZEg04vAXeUg= 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:65974 Archived-At: >>>>> Reiner Steib wrote: > On Wed, Aug 29 2007, Reiner Steib wrote: >> do we really need gnus-yes-or-no-p and gnus-y-or-n-p? >> >> They are there since almost forever. From the comment, I'd guess it >> could have been a workaround for a bug in the corresponding Emacs >> functions. >> >> ,----[ 3.1 (larsi 04-Mar-97) ] >>| ;; Two silly functions to ensure that all `y-or-n-p' questions clear >>| ;; the echo area. > [...] > I defaliased them to the original Emacs functions. If nobody > complains after some time, we can get rid of the aliases and use the > original functions. Sorry for my lazy response. I wish that a command like the following clears a question out after I answer. (defun foo () "Switch to buffer named foo." (interactive) (when (y-or-n-p "Switch to buffer foo? ") (switch-to-buffer "foo"))) This should be fixed if it is considered to be a bug of Emacs, and we will be able to remove `gnus-y-or-n-p' at last when Gnus comes not to support the versions of Emacsen having the bug. In other words, if we don't use `gnus-y-or-n-p' we have to keep having `(message "")' with `y-or-n-p' that doesn't follow a function that clears or changes the echo area (minibuffer?) until Gnus comes not to support buggy Emacsen. I think.