unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Kangas <stefan@marxist.se>
Cc: 36567@debbugs.gnu.org
Subject: bug#36567: cl-defgeneric defeats (with-suppressed-warnings ((obsolete fun)) ...)
Date: Wed, 10 Jul 2019 14:15:17 +0200	[thread overview]
Message-ID: <87sgre5bmy.fsf@mouse.gnus.org> (raw)
In-Reply-To: <CADwFkmmRrp66PbUodJLwqRu_csipQbw0e6om5p0aBv4jZiP7mg@mail.gmail.com> (Stefan Kangas's message of "Wed, 10 Jul 2019 05:11:01 +0200")

Stefan Kangas <stefan@marxist.se> writes:

> Result:
> *Compile-Log* buffer contains:
> foo.el:3:22:Warning: ‘foo’ is an obsolete generic function.

Gah.  I thought we had squished all these by now...

So the thing is that if you have already eval-ed an obsolete defgeneric,
and then you compile a file that contains suppressed use of it, then you
still get the warning?

Hmm...

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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2019-07-10 12:15 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 [this message]
2019-07-10 23:01   ` Stefan Kangas
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87sgre5bmy.fsf@mouse.gnus.org \
    --to=larsi@gnus.org \
    --cc=36567@debbugs.gnu.org \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).