unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Sebastian Wiesner <swiesner@lunaryorn.com>
To: emacs-devel@gnu.org
Subject: subr-x on older Emacsen
Date: Tue, 15 Jul 2014 15:08:48 +0200	[thread overview]
Message-ID: <47A003F9-F2D7-454C-B148-31A6C2D46C1F@lunaryorn.com> (raw)

Hello,

I’d like to use the new subr-x library in my Emacs Lisp projects, and I’m searching for advice on how to handle backwards compatibility.

As you know, subr-x was only recently introduced in Emacs trunk, and is not available in any Emacs release.  Currently, I simply copy those functions that I need into my code, guarding their definition with `(unless (features 'subr-x) …)'.

This scales poorly across many projects, obviously, so I’d like to know if there is a better approach to handle this problem.  Is their a compatibility package for subr-x on GNU ELPA, similar to cl-lib?

Greetings,
Sebastian Wiesner


             reply	other threads:[~2014-07-15 13:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15 13:08 Sebastian Wiesner [this message]
2014-07-18 12:21 ` subr-x on older Emacsen Bozhidar Batsov
2014-07-18 15:54   ` Stefan Monnier
2014-07-18 16:16     ` Sebastian Wiesner

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=47A003F9-F2D7-454C-B148-31A6C2D46C1F@lunaryorn.com \
    --to=swiesner@lunaryorn.com \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).