From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Kangas <stefan@marxist.se>
Cc: 36568@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#36568: with-suppress-warnings not working in seq-tests.el
Date: Sat, 22 Aug 2020 16:14:09 +0200 [thread overview]
Message-ID: <87v9halqdq.fsf@gnus.org> (raw)
In-Reply-To: <CADwFkmnK7i5_cs_Rg=+TDYdZ2+W+w5dn2TaGbNMAGErwoe1ucA@mail.gmail.com> (Stefan Kangas's message of "Wed, 10 Jul 2019 05:23:07 +0200")
Stefan Kangas <stefan@marxist.se> writes:
> On current master, I'm seeing strange behaviour when trying to
> suppress warnings in the test suite using with-suppressed-warnings.
[...]
> In toplevel form:
> lisp/emacs-lisp/seq-tests.el:183:20:Warning: `seq-contains' is an obsolete
> function (as of 27.1); use `seq-contains-p' instead.
Odd. To reproduce, I tried to just do:
(require 'seq)
(defun foo ()
(with-suppressed-warnings ((obsolete seq-contains))
(seq-contains '(3 4 5 6) 3)))
But the warning is suppressed correctly then. So there's ... something
in the way the test files are compile that breaks
with-suppressed-warnings? Something in the ert macros? Anybody got any
ideas?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-08-22 14:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-10 3:23 bug#36568: with-suppress-warnings not working in seq-tests.el Stefan Kangas
2019-07-10 3:42 ` Stefan Kangas
2020-08-22 14:14 ` Lars Ingebrigtsen [this message]
2020-10-07 4:57 ` Lars Ingebrigtsen
2020-10-07 5:18 ` Lars Ingebrigtsen
2020-10-07 5:35 ` Michael Heerdegen
2021-12-05 3:22 ` Lars Ingebrigtsen
2021-12-05 11:27 ` Stefan Kangas
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=87v9halqdq.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=36568@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=stefan@marxist.se \
/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.