unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 36567@debbugs.gnu.org
Subject: bug#36567: cl-defgeneric defeats (with-suppressed-warnings ((obsolete fun)) ...)
Date: Wed, 10 Jul 2019 05:11:01 +0200	[thread overview]
Message-ID: <CADwFkmmRrp66PbUodJLwqRu_csipQbw0e6om5p0aBv4jZiP7mg@mail.gmail.com> (raw)

cl-defgeneric defeats with-suppressed-warnings on current
master under certain circumstances.

Steps to reproduce:
0. emacs -Q
1. C-x C-f foo.el RET
2. Insert into buffer:

(require 'cl-generic)
(cl-defgeneric foo ()
  (declare (obsolete nil nil))
  t)

3. C-x C-e    [i.e. evaluate foo]
4. Insert into buffer:

(with-suppressed-warnings ((obsolete foo))
  (foo))

5. C-x C-s
6. M-x byte-compile-file RET foo.el RET

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

Expected result:
*Compile-Log* buffer contains no warning.


In GNU Emacs 27.0.50 (build 2, x86_64-apple-darwin15.6.0, NS
appkit-1404.47 Version 10.11.6 (Build 15G22010))
 of 2019-07-10 built on Stefans-MBP
Repository revision: 77cf71ce8cc611ecfd143277441e2ad4acc9401b
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1404
System Description:  Mac OS X 10.11.6





             reply	other threads:[~2019-07-10  3:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-10  3:11 Stefan Kangas [this message]
2019-07-10 12:15 ` bug#36567: cl-defgeneric defeats (with-suppressed-warnings ((obsolete fun)) ...) Lars Ingebrigtsen
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=CADwFkmmRrp66PbUodJLwqRu_csipQbw0e6om5p0aBv4jZiP7mg@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=36567@debbugs.gnu.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 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).