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

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

Re: return first element in list with certain property


From: Michael Heerdegen
Subject: Re: return first element in list with certain property
Date: Mon, 27 Nov 2017 04:44:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Emanuel Berg <moasen@zoho.com> writes:

> John Mastro wrote:
>
> > I do think it's perfectly reasonable to use seq.el and support only
> > Emacs versions >= 25.1.
>
> So if I do, I don't need to "package-require" it in the commented
> package header? It will be enough with just a `require'?

Yes.

> However since the "package-require" was supposed to be transparent,
> and not download anything unless needed, doesn't that amount to - if I
> put it there - it will be installed on < 25.1, but not installed on
> version where seq is part of vanilla Emacs?

Exactly.  Have a look at the "beacon" package for example.  It depends
on "seq" - see the header.  If you install it in Emacs 24, the "seq"
Elpa package will be installed along with it.  In Emacs 25, only the
"beacon" package itself is installed.  Try it!


Michael.



reply via email to

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