From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65990 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: Wed, 19 Dec 2007 08:01:09 +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 1198018909 1558 80.91.229.12 (18 Dec 2007 23:01:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2007 23:01:49 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14482@lists.math.uh.edu Wed Dec 19 00:02:01 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 1J4lRj-0000d8-Ia for ding-account@gmane.org; Wed, 19 Dec 2007 00:01:55 +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 1J4lRL-0002h7-8I; Tue, 18 Dec 2007 17:01:31 -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 1J4lRJ-0002gs-Vx for ding@lists.math.uh.edu; Tue, 18 Dec 2007 17:01:29 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1J4lRD-0002yP-Qq for ding@lists.math.uh.edu; Tue, 18 Dec 2007 17:01:29 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1J4lRB-0006Dl-00 for ; Wed, 19 Dec 2007 00:01:21 +0100 Original-Received: from [66.225.201.151] (port=46286 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1J4lR6-0005mX-V3 for ding@gnus.org; Tue, 18 Dec 2007 17:01:17 -0600 X-Hashcash: 1:20:071218:ding@gnus.org::k+NjFikEcfPs4Dgk:00001G5D 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:yyqOJiz+208Tk8sKv3VXRPc9/r4= 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:65990 Archived-At: >>>>> Katsumi Yamaoka wrote: >>>>>> 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. I forgot checking `yes-or-no-p'. I verified that it clears a question by itself with Emscs 20.7-23.0.60 and XEmacs 21.4/21.5. (defun fooo () "Switch to buffer named fooo." (interactive) (when (yes-or-no-p "Switch to buffer fooo? ") (switch-to-buffer "fooo"))) I don't know why `gnus-yes-or-no-p' was introduced, but it might have been for Emacs 19 because it appeared in "(ding) Gnus v0.30" (I no longer have Emacs 19 and cannot verify it). Anyway, I believe we don't need `gnus-yes-or-no-p' OTOH, I also checked `y-or-n-p' again with all the versions of Emacsen and confirmed it doesn't clear a question. So, I strongly oppose to making `gnus-y-or-n-p' alias to `y-or-n-p' or removing `gnus-y-or-n-p'. Regards,