From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#39169: 28.0.50; Confusing obsolete variable warnings in eieio-defclass-autoload Date: Mon, 24 Aug 2020 22:55:01 +0200 Message-ID: <87h7srg3x6.fsf@gnus.org> References: <87tv4txf23.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5926"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 39169@debbugs.gnu.org, Stefan Monnier To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 24 22:56:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAJVj-0001Qf-3F for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 22:56:11 +0200 Original-Received: from localhost ([::1]:58068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAJVh-0002qb-UY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 16:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAJVa-0002oV-1j for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 16:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAJVZ-0001Lp-OH for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 16:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAJVZ-0001ro-N1 for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 16:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Aug 2020 20:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39169 X-GNU-PR-Package: emacs Original-Received: via spool by 39169-submit@debbugs.gnu.org id=B39169.15983025157109 (code B ref 39169); Mon, 24 Aug 2020 20:56:01 +0000 Original-Received: (at 39169) by debbugs.gnu.org; 24 Aug 2020 20:55:15 +0000 Original-Received: from localhost ([127.0.0.1]:59398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAJUp-0001qb-0D for submit@debbugs.gnu.org; Mon, 24 Aug 2020 16:55:15 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:33396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAJUn-0001qL-6y for 39169@debbugs.gnu.org; Mon, 24 Aug 2020 16:55:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JxfLRtwfwfl/EciiQzMxEaIjKRTjV8PHXcGuhE03XlI=; b=Y104iGdv5qBOazjqZcmtazcNet QxXPcRYlNg4lBVq75BHiJba31xJCcWf5hRiILSnEc1j+0g3ycBShkaV+ngryiLgbM7B4KFjAKKRNy TkHxbINZkGLjFgsUMrHuh6JoXHYxft131Nk0fQJgPqQw7fuuSgx7b1K1bdBHqlzJmSBs=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAJUd-0003n2-CN; Mon, 24 Aug 2020 22:55:06 +0200 X-Now-Playing: Lucy Roleff's _Left Open in a Room_: "A Woman's Worth" In-Reply-To: <87tv4txf23.fsf@web.de> (Michael Heerdegen's message of "Sat, 18 Jan 2020 10:57:24 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186218 Archived-At: Michael Heerdegen writes: > I'm currently developing a Gnu Elpa package that makes use of > `defclass'. These lines in `eieio-defclass-autoload': > > #+begin_src emacs-lisp > ;; turn this into a usable self-pointing symbol > (when eieio-backward-compatibility > (set cname cname) > (make-obsolete-variable cname (format "use \\='%s instead" cname) > "25.1")) > #+end_src > > (and eieio-backward-compatibility defaults to t) lead to the following > situation: when I have any class, for example, named `buffer-note', and > I have the generated autoloads loaded, whenever I use a variable with > the name `buffer-note' (which is a quite natural name for objects of > that class), I get tons of warnings saying: > > | buffer-note.el:136:11:Warning: `buffer-note' is an obsolete > | variable (as of 25.1); use 'buffer-note > > The purpose of these warnings is a backward compatibility one, but it > shoots way over target: these warnings prevent me from using the class > name as a variable name - I keep renaming variables to prevent these > annoying warnings all the time. Yes, that does sound annoying. eieio got a lot of warnings during the conversion to more normal cl-* functions the other year, so it made sense to add warnings like this during the rewrite. But that's done now, so perhaps it makes sense to remove these over-enthusiastic warnings now? Stefan? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no