emacs-devel
[Top][All Lists]
Advanced

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

Re: reverse in Emacs 24.4


From: Nicolas Petton
Subject: Re: reverse in Emacs 24.4
Date: Wed, 11 Feb 2015 14:37:21 +0100
User-agent: mu4e 0.9.9.6pre3; emacs 24.4.1

Stefan Monnier <address@hidden> writes:

>> I want to add a backward-compatible version `seq-reverse' for older
>> versions of Emacs, but I'm not sure how I should check the version of
>> Emacs.  Parsing the string `emacs-version' seems like a bad idea.
>
> The way I usually "parse" versions looks like:
>
>    (defalias 'seq-reverse
>       (if (ignore-errors (reverse [1 2]))
>           #'reverse
>         (lambda ...)))

I see.  So you'd rather test the feature instead of check the version of
Emacs?

Nico
-- 
Nicolas Petton
http://nicolas-petton.fr




reply via email to

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