From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.devel Subject: Re[1]: [Suggestion] New function `emacs-version>=' (Wedler, Christoph) Date: Tue, 6 May 2003 22:30:51 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305070230.h472Up508528@projectile.siege-engine.com> References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1052274844 24303 80.91.224.249 (7 May 2003 02:34:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 7 May 2003 02:34:04 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 07 04:34:02 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 19DEkd-0006J7-00 for ; Wed, 07 May 2003 04:33:47 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19DEoP-0005vx-00 for ; Wed, 07 May 2003 04:37:41 +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 19DEk7-0007un-0B for emacs-devel@quimby.gnus.org; Tue, 06 May 2003 22:33:15 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19DEjL-0006tl-00 for emacs-devel@gnu.org; Tue, 06 May 2003 22:32:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19DEie-0004tJ-00 for emacs-devel@gnu.org; Tue, 06 May 2003 22:32:15 -0400 Original-Received: from choochoo.ultranet.com ([146.115.254.62] helo=projectile.siege-engine.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19DEht-00044T-00 for emacs-devel@gnu.org; Tue, 06 May 2003 22:30:58 -0400 Original-Received: (from zappo@localhost) by projectile.siege-engine.com (8.11.6/8.11.2) id h472Up508528; Tue, 6 May 2003 22:30:51 -0400 X-Authentication-Warning: projectile.siege-engine.com: zappo set sender to eric@siege-engine.com using -f Original-To: emacs-devel@gnu.org In-reply-to: (emacs-devel-request@gnu.org) 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:13731 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13731 I apologize for the non-existent CC list, I'm responding to a digest. I also apologize for not reading all the messages associated with this thread first on the off chance I am repeating something. >I would like to see the following function defined in Emacs[1]: > >(defun emacs-version>= (major &optional minor patch) > "Return true if the Emacs version is >= to the given version. >The version is provided by the required argument MAJOR, and the optional >arguments MINOR and PATCH. Only the non-nil arguments are used in the >test." [ ... ] >Like it or not, a test like `emacs-version>=' would be useful for many >packages, thus a corresponding function would be useful to define in >Emacs. > >- Christoph > >[1] This function is already defined in XEmacs. I develop and maintain several Emacs Lisp tools in my imaginary spare time which I keep in my CEDET project. http://cedet.sourceforge.net/ and have had versioning trouble between my own packages, and with other not-in-emacs packages. To help confine version problems, I wrote (and posted to gnu.emacs.sources) a little tool I called "inversion" to help identify if what you need is "in version" whatever of some package. You can peek at it in CVS here. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/cedet/cedet/common/ or http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/cedet/cedet/common/inversion.el?rev=HEAD&content-type=text/plain Perhaps it would be useful. Eric -- Eric Ludlam: zappo@gnu.org, eric@siege-engine.com Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org