all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Petton <nicolas@petton.fr>
To: emacs-devel@gnu.org, Artur Malabarba <bruce.connor.am@gmail.com>
Subject: Upcoming seq.el version problem with the Emacs release
Date: Tue, 16 Feb 2016 14:32:35 +0100	[thread overview]
Message-ID: <87vb5osrv0.fsf@petton.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 2392 bytes --]

Hi,

We have been discussing with Artur an issue that will appear with seq.el
once we'll have Emacs 25.1 out.

Quoting Artur:

  Hi Nico, I just realised a problem that we're about to face. Once Emacs
  25 is released,there'll be a version of seq.el (2.x) in the wild, with a
  fixed set of features.  Later on, if you add new features to the seq.el
  that's on Elpa (whose version is 1.y) these features will be impossible
  to use without issue.
  
  For instance, let's say you add seq-map-indexed on version 1.15, and I
  want to use it on a package. For that, I would require seq.el version
  1.15 on my package.
  
  However, I have no guarantee that I'll get that. If the user is running
  Emacs 25.1, they'll have a seq.el installed with version 2.something
  (which satisfies the dependency) but does not contain map indexed.
  
  The same will happen for all newly added features. And seriously reduces
  the usefulness of seq as dependency package.


One solution would be to have a single seq package on Elpa (carrying a
2.x version number), that offered both implementations. It would have 3
files:

- seq.el
- seq-25.el
- seq-24.el

The file seq-24.el would have the exact same contents as the current
seq-1.x we have on Elpa except:

- The file-header and the provide statement would say seq-24

- It wouldn't have the package pseudo-headers (no version number, no
  keywords, etc).

The file seq-25.el would have the exact same contents as the current
seq-2.x we have in Emacs except:

- The file-header and the provide statement would say seq-25

- It wouldn't have the package pseudo-headers (no version number, no
  keywords, etc).

This way there is only one version of the seq package. Packages that
want some recent functionality added in minor-version 12 can simply
depend on 2.12, regardless of the Emacs version.  Also, packages that
want the generics functionality can simply depend on (seq "2.12") and on
(emacs "25").

The problem with this solution is that we'd get tons of byte-compilation
warnings, becaus even if seq-25.el is never used with Emacs 24.x, it
will get byte-compiled.

We were wondering if there would be a way to prevent byte-compilation
only on some emacs versions, or if someone have a better solution to the
problem.

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 512 bytes --]

             reply	other threads:[~2016-02-16 13:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-16 13:32 Nicolas Petton [this message]
2016-02-20  6:24 ` Upcoming seq.el version problem with the Emacs release John Wiegley
2016-02-20 18:30   ` Nicolas Petton
2016-03-15 21:46     ` Nicolas Petton
2016-03-19 17:44       ` Bozhidar Batsov
2016-03-20 10:15         ` Nicolas Petton
2016-03-20 14:20           ` Bozhidar Batsov
2016-03-20 20:35           ` Michael Heerdegen
2016-03-21  8:39             ` Nicolas Petton
2016-03-21 13:33           ` Stefan Monnier
2016-03-21 13:45             ` Nicolas Petton

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

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

  git send-email \
    --in-reply-to=87vb5osrv0.fsf@petton.fr \
    --to=nicolas@petton.fr \
    --cc=bruce.connor.am@gmail.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.