From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.devel Subject: Re: New function `emacs-version>=' Date: Sat, 03 May 2003 19:48:16 +0200 Organization: private Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <67B8CED503F3D511BB9F0008C75DAD66054855C9@dewdfx17> <20030502224227.C2FC.LEKTU@terra.es> <200305022114.h42LE8PH022578@rum.cs.yale.edu> Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051985860 5420 80.91.224.249 (3 May 2003 18:17:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 3 May 2003 18:17:40 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 03 20:17:34 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 19C1Zm-0001P2-00 for ; Sat, 03 May 2003 20:17:34 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19C1bv-00039e-00 for ; Sat, 03 May 2003 20:19: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 19C1az-0006Yf-04 for emacs-devel@quimby.gnus.org; Sat, 03 May 2003 14:18:49 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19C1Xd-0005fo-00 for emacs-devel@gnu.org; Sat, 03 May 2003 14:15:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19C1WI-0005MB-00 for emacs-devel@gnu.org; Sat, 03 May 2003 14:14:00 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19C1Uu-00043E-00 for emacs-devel@gnu.org; Sat, 03 May 2003 14:12:33 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19C1Sz-00011W-00 for ; Sat, 03 May 2003 20:10:33 +0200 Mail-Followup-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19C1Iy-0000Yq-00 for ; Sat, 03 May 2003 20:00:12 +0200 Original-Lines: 33 Original-X-Complaints-To: usenet@main.gmane.org X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML; )7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+; CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:0e6pissTxBkeyIRKIfr+VtX8WyY= 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:13661 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13661 On Fri, May 02 2003, Stefan Monnier wrote: > It's just that sometimes it's difficult to test whether A works or > not. Another example (BTW: Is this fixed in the RC branch?): Gnus 5.9 bundled with Emacs 21.3 comes with a slightly broken version of the function `sort-coding-systems'. Therefore in some cases, Gnus uses utf-16-x rather than utf-8. Additionally, it's not correct utf-16-be. (See [1] for details.) My current test is... (when (featurep 'xemacs) (error (concat "This file cannot be used with XEmacs."))) (defun rs-sort-coding-systems (codings) [... fixed code ...]) (if (and (= emacs-major-version 21) (= emacs-minor-version 3)) (defalias 'sort-coding-systems 'rs-sort-coding-systems) (message "[...]")) Okay, here I'd need `emacs-version=', rather than emacs-version>='. But I don't see a better test than emacs-version. Bye, Reiner. [1] on bug-gnu-emacs, -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/