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