help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: alist-get in Emacs 24?


From: Michael Heerdegen
Subject: Re: alist-get in Emacs 24?
Date: Sat, 03 Oct 2015 05:05:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Marcin Borkowski <mbork@mbork.pl> writes:

> Of course.  What I was asking was more or less "what is the percentage
> of Emacs users who are on 23, 24... etc.".  Are there any estimates?

Good question.

> Also, are there any good practices/guidelines as to how to indicate in
> the code that some of its parts are meant for legacy Emacsen?  So that
> I can e.g. remove them 3 years from now without having to study all the
> code, for example.

Most people that want to support older Emacs versions do it like this
in their code:

(if (test-if-a-certain-feature-is-implemented)
    ;; Emacs >= 25.1
    (code for newer Emacs versions ...)
  ;; Emacs < 25
  (code for older Emacs versions))


Regards,

Michael.




reply via email to

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