[Top][All Lists]

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

bug#36567: cl-defgeneric defeats (with-suppressed-warnings ((obsolete fu

From: Lars Ingebrigtsen
Subject: bug#36567: cl-defgeneric defeats (with-suppressed-warnings ((obsolete fun)) ...)
Date: Wed, 10 Jul 2019 14:15:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Kangas <address@hidden> 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?


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))

Compiling this doesn't:

(require 'cl-generic)
(with-suppressed-warnings ((obsolete foo))
  (cl-defgeneric foo ()
    (declare (obsolete nil nil))

So...  I think...  perhaps this is not a bug?

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

reply via email to

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