From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#39169: 28.0.50; Confusing obsolete variable warnings in eieio-defclass-autoload Date: Sat, 18 Jan 2020 10:57:24 +0100 Message-ID: <87tv4txf23.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="81560"; mail-complaints-to="usenet@ciao.gmane.io" To: 39169@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 18 10:58:38 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 1isksI-000LBX-3E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jan 2020 10:58:38 +0100 Original-Received: from localhost ([::1]:38698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isksG-0000I3-Tq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jan 2020 04:58:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45344) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iskrj-0000Hb-RO for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 04:58:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iskri-0005uY-Mg for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 04:58:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34532) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iskri-0005uR-J6 for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 04:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iskri-0001zK-Hy for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 04:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Jan 2020 09:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39169 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15793414517581 (code B ref -1); Sat, 18 Jan 2020 09:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jan 2020 09:57:31 +0000 Original-Received: from localhost ([127.0.0.1]:40502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iskrC-0001yD-LR for submit@debbugs.gnu.org; Sat, 18 Jan 2020 04:57:30 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iskr8-0001y3-F4 for submit@debbugs.gnu.org; Sat, 18 Jan 2020 04:57:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45273) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iskr7-0008Qo-17 for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 04:57:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iskr5-0005XI-Sx for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 04:57:24 -0500 Original-Received: from mout.web.de ([217.72.192.78]:37807) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iskr5-0005Vr-FG for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 04:57:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1579341440; bh=FopyG1XHX60vNxkkrd4ivXXoXI/TZLbC13cX+pOiDXs=; h=X-UI-Sender-Class:From:To:Subject:Date; b=UfQ9B95fsA+rgWZR2gOzwKGX2noe9zbVJDUiSBM4j9rcNO2LIoWc51exXIPDWQuuq Jsj3KZgJHmzrYFfEMTmTbdoe6r5f8FSOMZoHDfDEdYgKIoHNlfkxMZ7XCuMHgfSzMc 8XS0fzHwj8poFSyRm7a0EpkaAhbN48Qkn+6RVTwk= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.67.106.182]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MZlZK-1jD2Mg2Fbi-00LYIz for ; Sat, 18 Jan 2020 10:57:20 +0100 X-Provags-ID: V03:K1:OanaoXrmsfiI5+KIDHwr1J0o2IxJOFerYOqY1qagRhVp6ftBnfg qMsb+t+utTtGbqZq1Vi7m3dGkIHoxXEnnzNmnGsCagC97FSWEojK6Sm+ikSoR8qCFdYsTyx vQcDnvsN7p2yjV0+rN16RSkSkW5uyxPboJyb9ZRy/QknGoac5CnFPYSdlcnxAgmHAkrynbt vbFpmldH0kNtKApZDyM1g== X-UI-Out-Filterresults: notjunk:1;V03:K0:5r299NjyfcY=:VdR+WdTfjNPNvoCJU64X6i A0PVAX+gyngtdCnGvZb5ADw/7JFege1MzPIFyjjITwLC3iYoyit8JsQvPstVZK2bOk7L8iacO xBQeRfP/wJbu0D4Nk6+BzSL+XbVpYCy762TH7r8D0+9P7doj3n4sqqRQ0x/nybQGROgS/lJK6 0ZFD5N0h2dmvn9Bh4S/EUAXgRn86/nJQrIX5x55tQ+MbQAdOHOCo90p1JRhyTBXSbfRftywWr i2osVMsd9fyLYJJa2a0dcAEtzuh1cpy8n4mxV/04bQ9FPEtsJerluEd47shfhdhYkdCswOlVp WthX4QBaGCokSWFx3TCdN/LQUZBxhnR0USRfGwK26u4GjPsucd+uRK0gJ3JVUtZI9pHcWzm0M 0xKuS3qPxiaDyiAlYQutLq7M89LZjBNs360TmXZGetO9AIWm8SOqnnPBLecuRvWIWl/vtvKDN NhDo/1GBCxaSxWkBbmd17UAG1s+ZHADvquJiBowfb1TPbo5Rhcyf19d0JuAxbw48pTp04RL7U LX8b61wcH0PFeM0PbR3yrimlm4W59A69d2ggNZcqLJm0BJHxpfB9npCOrxqyAiAr9okULPufu lO9KJvmkphb0mALdf3XaFdLZa3d5cIrovfC3JCaZWa2CLr/okdX4NUh+lgcmaLYZmQRBzRikU KrgGqdkeeOkRs3BxVtt5jkUDlQw3i18gsNqo5V+W0xslpkHj0djIRF7/LDK8eji4yQiP2uvPa j4j27bH7kZH9vjB5pE1NKvKpPFOeAXvJAwoZI3J/Bm3FJiEWYAvXy56rhBuoBBomB/+sgDx9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:174803 Archived-At: Hello, 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. They are obviously very confusing if you don't know the background internals, unless you really have hit the addressed case (and of course following the instruction is not expedient). And it's hard to get rid of them: because the `make-obsolete-variable' are in the autoloads, not even a file-local eieio-backward-compatibility setting helps. Please reconsider how these warnings are implemented. If no better solution can be found, the warning message should at least be made more meaningful and tell which case it addresses, and there should be a (discoverable!) way to turn off these warnings (file locally). TIA, Michael. In GNU Emacs 28.0.50 (build 23, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0) of 2020-01-17 built on drachen Repository revision: 4d3ac4cddbe1960f5227d14bd0d357a7b19c1296 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12006000 System Description: Debian GNU/Linux bullseye/sid