From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: New function `emacs-version>=' Date: Fri, 02 May 2003 23:00:47 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030502224227.C2FC.LEKTU@terra.es> References: <67B8CED503F3D511BB9F0008C75DAD66054855C9@dewdfx17> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1051909507 16361 80.91.224.249 (2 May 2003 21:05:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 2 May 2003 21:05:07 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 02 23:05:01 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19BhiH-0004FF-00 for ; Fri, 02 May 2003 23:05:01 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Bhjz-0007yN-00 for ; Fri, 02 May 2003 23:06:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Bhhz-0002L1-08 for emacs-devel@quimby.gnus.org; Fri, 02 May 2003 17:04:43 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19Bhhn-0002Kh-00 for emacs-devel@gnu.org; Fri, 02 May 2003 17:04:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Bhen-0001FK-00 for emacs-devel@gnu.org; Fri, 02 May 2003 17:01:27 -0400 Original-Received: from smtp.terra.es ([213.4.129.129] helo=tsmtp10.mail.isp) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19BheH-00018T-00 for emacs-devel@gnu.org; Fri, 02 May 2003 17:00:53 -0400 Original-Received: from [193.153.116.104] ([193.153.116.104]) by tsmtp10.mail.isp (terra.es) with ESMTP id HEA2D500.XE3; Fri, 2 May 2003 23:00:41 +0200 Original-To: "Wedler, Christoph" , "Emacs-Devel (E-mail)" In-Reply-To: <67B8CED503F3D511BB9F0008C75DAD66054855C9@dewdfx17> X-Mailer: Becky! ver. 2.05.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13631 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13631 On Fri, 2 May 2003 21:55:31 +0200 , "Wedler, Christoph" wrote: > Specific features or bug fixes are only available in newer Emacsen and > packages must be able to cope with it. I used to think like you, and even had such a function in my .emacs (to cope with 20.7, 21.[123], 21.2.9[0-5], EMACS_21_1_RC and HEAD). Now I don't. You say: > The right test is > > - I need to check the availibility for feature/fix A > - feature/fix A is provided with Emacs-X.Y > - therefore I test with (emacs-version>= X Y) but the right test is: - I want to use feature/fix A - therefore, I test whether A is available. Whether the feature is available in version X.Y is not that clear-cut, specially if you're testing for a feature that appears in a branch before being installed in the trunk (or even as a temporary measure, while another, better fix is installed on the trunk). Checking for a particular release is pointless, because you're not really interested in the release, you're interested in the feature. What's wrong with using fboundp, boundp, facep? There are 23/11/6 of them (respectively) in my .emacs and it works really fine... /L/e/k/t/u