From: Stefan Kangas <stefan@marxist.se>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 36567@debbugs.gnu.org
Subject: bug#36567: cl-defgeneric defeats (with-suppressed-warnings ((obsolete fun)) ...)
Date: Thu, 11 Jul 2019 01:01:19 +0200 [thread overview]
Message-ID: <CADwFkmnNAwb+-j5Pz3_kvD8+wyXXbEuKjq03AiOMaNp-BEA1Gg@mail.gmail.com> (raw)
In-Reply-To: <87sgre5bmy.fsf@mouse.gnus.org>
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Oh! No, it's warning about the defgeneric itself? Compiling this leads
> to a warning (if it's already defined):
>
> (require 'cl-generic)
> (cl-defgeneric foo ()
> (declare (obsolete nil nil))
> t)
>
> Compiling this doesn't:
>
> (require 'cl-generic)
> (with-suppressed-warnings ((obsolete foo))
> (cl-defgeneric foo ()
> (declare (obsolete nil nil))
> t))
>
> So... I think... perhaps this is not a bug?
Interesting. It looks like there is indeed no bug in
with-suppressed-warnings.
Is it also expected that the cl-defgeneric in the first case gives a
warning? I don't get a warning if I replace "cl-defgeneric" with
"defun" in that case. I would expect only usage of an obsolete
cl-defgeneric to give a warning, not its definition. My expectations
may be wrong.
Thanks,
Stefan Kangas
next prev parent reply other threads:[~2019-07-10 23:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-10 3:11 bug#36567: cl-defgeneric defeats (with-suppressed-warnings ((obsolete fun)) ...) Stefan Kangas
2019-07-10 12:15 ` Lars Ingebrigtsen
2019-07-10 23:01 ` Stefan Kangas [this message]
2019-07-11 14:14 ` Lars Ingebrigtsen
2019-07-13 9:19 ` 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=CADwFkmnNAwb+-j5Pz3_kvD8+wyXXbEuKjq03AiOMaNp-BEA1Gg@mail.gmail.com \
--to=stefan@marxist.se \
--cc=36567@debbugs.gnu.org \
--cc=larsi@gnus.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.