From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.devel Subject: Re: New function `emacs-version>=' Date: Sat, 3 May 2003 14:12:09 +0300 Organization: Mivtach-Simon Insurance agencies Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305031112.h43BC9tL013684@beta.mvs.co.il> References: <20030502224227.C2FC.LEKTU@terra.es> <20030502232146.C2FF.LEKTU@terra.es> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1051960727 8591 80.91.224.249 (3 May 2003 11:18:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 3 May 2003 11:18:47 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 03 13:18:45 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 19Bv2T-0002EQ-00 for ; Sat, 03 May 2003 13:18:45 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Bv4T-0007fr-00 for ; Sat, 03 May 2003 13:20:49 +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 19Buza-0006bL-03 for emacs-devel@quimby.gnus.org; Sat, 03 May 2003 07:15:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19BuyT-0006U8-00 for emacs-devel@gnu.org; Sat, 03 May 2003 07:14:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Buwq-00064X-00 for emacs-devel@gnu.org; Sat, 03 May 2003 07:12:57 -0400 Original-Received: from unix.simonwiesel.co.il ([192.114.178.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19BuwB-0005xz-00 for emacs-devel@gnu.org; Sat, 03 May 2003 07:12:15 -0400 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.11.6/8.11.6) with ESMTP id h43BCAs15581; Sat, 3 May 2003 14:12:10 +0300 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.5/8.12.5) with ESMTP id h43BCAfe013690; Sat, 3 May 2003 14:12:10 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.12.5/8.12.5/Submit) id h43BC9tL013684; Sat, 3 May 2003 14:12:09 +0300 Original-To: lektu@terra.es In-reply-to: <20030502232146.C2FF.LEKTU@terra.es> (message from Juanma Barranquero on Fri, 02 May 2003 23:35:14 +0200) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) Original-cc: emacs-devel@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:13642 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13642 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 02 May 2003 23:35:14 +0200, Juanma Barranquero wrote: > > On Fri, 02 May 2003 17:14:07 -0400, "Stefan Monnier" 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:ehud@unix.mvs.co.il 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-----