[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New function `emacs-version>='

From: Reiner Steib
Subject: Re: New function `emacs-version>='
Date: Sat, 03 May 2003 19:48:16 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

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] <address@hidden> on bug-gnu-emacs,

      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]