From: haj@posteo.de (Harald Jörg)
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Philipp Stephani <phst@google.com>, emacs-devel@gnu.org
Subject: Re: master 2e090da: Revert commit 1f44a776729adf9c6468a76f8310616fde62eeaa for Flymake.
Date: Mon, 26 Oct 2020 10:47:54 +0100 [thread overview]
Message-ID: <87d015jp2t.fsf@hajtower> (raw)
In-Reply-To: <jwvft62s934.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 25 Oct 2020 09:59:05 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Revert commit 1f44a776729adf9c6468a76f8310616fde62eeaa for Flymake.
>> Flymake supports all Emacs versions back to 26.1, so it can’t use
>> ‘ert-resource-file’.
>> * test/lisp/progmodes/flymake-tests.el (flymake-tests-data-directory):
>> Recreate.
>> (flymake-tests--call-with-fixture): Stop using ‘ert-resource-file’.
>
> It's common for a package to say "require Emacs version NN.MM" but to
> provide extra features on more recent Emacsen. And the tests can
> definitely fall into the category of extra features.
I have also been bitten by this and am pondering what's the best way out
of that dilemma. I'm working on cperl-mode and am trying to keep it
compatible with Emacs 26.1 (the version which comes with Debian stable).
cperl-mode isn't even on ELPA yet, but might end up there.
I *really* like 'ert-resource-file' because it reduces a lot of
boilerplate from the tests. Therefore I don't consider reverting that
commit. However, for the moment, I lost the chance to run the tests in
the environment which comes with Emacs "as shipped by the
distributions".
In my opinion, running the tests in older versions _is_ important,
otherwise the claim "supports Emacs 26.1" isn't honest. I want to
support older Emacsen so that I can get feedback from users who don't
want to compile their own Emacs (which includes myself on production
systems), and I also want to add new features for which new tests should
be written.
So, what I've come up with is a file ert-backport.el, with the
description "Run ERT tests from Emacs master under older Emacsen".
To activate this file, I add its directory to the environment variable
EMACSLOADPATH - and voila, tests from Emacs' master branch pass with
Debian buster's Emacs 26, using the ERT provided by this Debian package.
Whenever the tests are upgraded to use new ERT features (which I
consider to be rare events anyway), ert-backport.el needs to be updated.
Could such an ert-backport.el be a candidate for ELPA? It should be
useful for all dual-life (Emacs + ELPA) packages.
--
Cheers,
haj
next prev parent reply other threads:[~2020-10-26 9:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20201025101403.1168.4440@vcs0.savannah.gnu.org>
[not found] ` <20201025101404.7EBE2204DA@vcs0.savannah.gnu.org>
2020-10-25 13:59 ` master 2e090da: Revert commit 1f44a776729adf9c6468a76f8310616fde62eeaa for Flymake Stefan Monnier
2020-10-26 9:47 ` Harald Jörg [this message]
2020-10-26 16:23 ` Stefan Kangas
2020-10-26 19:57 ` Harald Jörg
2020-10-27 0:58 ` Stefan Kangas
2020-10-31 15:07 ` Philipp Stephani
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=87d015jp2t.fsf@hajtower \
--to=haj@posteo.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=phst@google.com \
/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.