[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New function `emacs-version>='
From: |
Ehud Karni |
Subject: |
Re: New function `emacs-version>=' |
Date: |
Sat, 3 May 2003 14:12:09 +0300 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 02 May 2003 23:35:14 +0200, Juanma Barranquero <address@hidden> wrote:
>
> On Fri, 02 May 2003 17:14:07 -0400, "Stefan Monnier"
> <monnier+gnu/address@hidden> wrote:
>
> > It's just that sometimes it's difficult
> > to test whether A works or not. For instance, how do you check whether
> > the `display' property is supported by your version of Emacs ?
>
> Yeah, sure. But most features are not isolated, there are related
> variables, functions and sometimes even an entry in `features'... And if
> not, I'd call that a bug in the feature/fix implementation (I'm
> exaggerating, but only a bit.)
>
> And, as a last resort, you can often do something like
>
> (unless (ignore-errors XXXX)
> YYYY)
That is NOT always possible, I have another actual example:
How do you check that `perform-replace' accept a function in its
REPLACEMENTS argument (id does in 21.x, does not in 20.x or lower) ?
I have a hacked `perform-replace-20' (which is not the same as the
current version) function for older emacs's and I do:
(if (< emacs-major-version 21)
(defalias 'perform-replace 'perform-replace-20))
please suggest a better way.
Ehud.
- --
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
mailto:address@hidden Better Safe Than Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)
iD8DBQE+s6QILFvTvpjqOY0RAv4GAJ0RHsSfJ0aNVElMgYAHDXV5z64BBwCeIAvn
GZvWUHM04ex9P10bz8Clpr8=
=HykV
-----END PGP SIGNATURE-----
- [Suggestion] New function `emacs-version>=', Wedler, Christoph, 2003/05/02
- Re: New function `emacs-version>=', Juanma Barranquero, 2003/05/02
- Re: New function `emacs-version>=', Stefan Monnier, 2003/05/02
- Re: New function `emacs-version>=', Juanma Barranquero, 2003/05/02
- Re: New function `emacs-version>=',
Ehud Karni <=
- Re: New function `emacs-version>=', Juanma Barranquero, 2003/05/03
- Re: New function `emacs-version>=', Stephen J. Turnbull, 2003/05/03
- Re: New function `emacs-version>=', Juanma Barranquero, 2003/05/04
- Re: New function `emacs-version>=', Stephen J. Turnbull, 2003/05/06
- Re: New function `emacs-version>=', Richard Stallman, 2003/05/04
- Re: New function `emacs-version>=', Reiner Steib, 2003/05/03
- Re: New function `emacs-version>=', Stefan Monnier, 2003/05/03
- sort-coding-systems in 21.3 and RC branch (was: New function `emacs-version>='), Reiner Steib, 2003/05/05
- Re: sort-coding-systems in 21.3 and RC branch (was: New function `emacs-version>='), Kenichi Handa, 2003/05/06
Re: [Suggestion] New function `emacs-version>=', Thien-Thi Nguyen, 2003/05/02