unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: alist-get in Emacs 24?
Date: Sat, 03 Oct 2015 05:05:35 +0200	[thread overview]
Message-ID: <878u7k7itc.fsf@web.de> (raw)
In-Reply-To: 87pp0xu02o.fsf@mbork.pl

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	other threads:[~2015-10-03  3:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-02  6:32 alist-get in Emacs 24? Marcin Borkowski
2015-10-02  6:39 ` Dmitry Gutov
2015-10-02  6:54   ` Marcin Borkowski
2015-10-02  7:34 ` Michael Heerdegen
2015-10-02  8:49   ` Marcin Borkowski
2015-10-03  3:05     ` Michael Heerdegen [this message]
2015-10-02 13:37   ` Stefan Monnier
2015-10-07 19:15   ` Marcin Borkowski
2015-10-07 20:45     ` Drew Adams
2015-10-08  8:21     ` Michael Heerdegen
2015-10-08 15:53       ` Drew Adams
2015-10-08 16:14         ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878u7k7itc.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).