From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36567: cl-defgeneric defeats (with-suppressed-warnings ((obsolete fun)) ...) Date: Thu, 11 Jul 2019 16:14:34 +0200 Message-ID: References: <87sgre5bmy.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="189198"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36567@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 11 16:15:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlZqo-000n4N-NU for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jul 2019 16:15:10 +0200 Original-Received: from localhost ([::1]:42182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlZqn-0002VG-Nz for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jul 2019 10:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58273) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlZqi-0002TZ-07 for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:15:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlZqg-000163-Rv for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlZqg-00015l-Oh for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlZqg-000217-HI for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jul 2019 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36567 X-GNU-PR-Package: emacs Original-Received: via spool by 36567-submit@debbugs.gnu.org id=B36567.15628544827703 (code B ref 36567); Thu, 11 Jul 2019 14:15:02 +0000 Original-Received: (at 36567) by debbugs.gnu.org; 11 Jul 2019 14:14:42 +0000 Original-Received: from localhost ([127.0.0.1]:38316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlZqM-00020B-Gt for submit@debbugs.gnu.org; Thu, 11 Jul 2019 10:14:42 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:55792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlZqH-000200-T6 for 36567@debbugs.gnu.org; Thu, 11 Jul 2019 10:14:40 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlZqE-0004Nr-Dw; Thu, 11 Jul 2019 16:14:36 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUkGwwNCQT5+OtyZj5A NhuekmO8tIfMxJpwXbpLAAACRElEQVQ4jWWTwZKbMAyG5YG925PdPkC2W67bsc3ZGat77gxr8gAp 5p4U/PqVZEgzrQZI7A/pl2QB1yNZV9ac5/JgKwg4dsuYMy3zxD+l5LyB480mMdvnObP/P2CwPW2y 7eDN2Wp93kDZRH4hsO1ghXkDNwwYCIy7x7yLuMYOG2AZGOcKXmNaJqc9h5orqC6v/dxdnfJ38TFX 8HW8Hrvfyv4HuuNxKq8qjn9BqSKlXM6jwnu6d5CWfvSn9se43j0k1jLOabInaPy4g5rWW9+tFxug sZUQqOpdLqNzQKASBiJynlLCoEIzEHkAb2tyiKCk9UxYQ9Qv3lEPIWcG1DHxoJon66nv5kCHm/hY kgCKVQZHoD2vfLxsEqocKVPaV/psHwB5XBfLCsY8xW+PIJeLKBvT4I2BE0BovqAyplUm2iixvIUz 92xe7MnocNLR+rJSXj7BTNNFt/1uUKlnP/Q0j1QKg8JDOXwSIIcPTp26Q4Ammiqfkmq1vn2RhhLJ 4kH34l0bVHq5MikyVzXUYhOifjrQisWt5zoS3ZNNTh2aZ1pJFy34tM2/fVeHp+ClcIwWtiG3jiZX xxDlLxnwIyLS6gQG8Yay29IVoI2yUEYjUgpBvgdo6aIvYAcUHDQYzSgABZSm64Ctf6c3yMQLgxyT eQZ4mZTsGzB0boQwhLrx01QDVtchtigRNEfcAL0NECkzFmGqdg+krFrEgcI177uDqWlBdB8DttBs KTHQpM0JRxcUAfXgQfVIkVyWuRtoTU+l6/Q82B+a9AiHe95C5gAAAABJRU5ErkJggg== In-Reply-To: (Stefan Kangas's message of "Thu, 11 Jul 2019 01:01:19 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162701 Archived-At: Stefan Kangas writes: > 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. The defgeneric machinery has its own separate warning system outside of the byte compiler which is why things are slightly odd in this area. But currently, both cl-defgeneric and cl-defmethod warn if you try to an obsolete method. I think that makes sense for cl-defmethod (because it's a "use", sort of, of an obsolete method), but perhaps it does not make sense for cl-defgeneric? As for defun -- if you've made a function obsolete, and then defun it, I think not giving a warning is conceptually sound, because you're defining something brand new. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no