GNU bug report logs - #39169
28.0.50; Confusing obsolete variable warnings in eieio-defclass-autoload

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Heerdegen <michael_heerdegen@HIDDEN>; dated Sat, 18 Jan 2020 09:58:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Jan 2020 09:57:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 04:57:30 2020
Received: from localhost ([127.0.0.1]:40502 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iskrC-0001yD-LR
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2020 04:57:30 -0500
Received: from lists.gnu.org ([209.51.188.17]:55390)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iskr8-0001y3-F4
 for submit <at> debbugs.gnu.org; Sat, 18 Jan 2020 04:57:29 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45273)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iskr7-0008Qo-17
 for bug-gnu-emacs@HIDDEN; Sat, 18 Jan 2020 04:57:26 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iskr5-0005XI-Sx
 for bug-gnu-emacs@HIDDEN; Sat, 18 Jan 2020 04:57:24 -0500
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 <michael_heerdegen@HIDDEN>)
 id 1iskr5-0005Vr-FG
 for bug-gnu-emacs@HIDDEN; 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
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
 <bug-gnu-emacs@HIDDEN>; Sat, 18 Jan 2020 10:57:20 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; Confusing obsolete variable warnings in
 eieio-defclass-autoload
Date: Sat, 18 Jan 2020 10:57:24 +0100
Message-ID: <87tv4txf23.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:OanaoXrmsfiI5+KIDHwr1J0o2IxJOFerYOqY1qagRhVp6ftBnfg
 qMsb+t+utTtGbqZq1Vi7m3dGkIHoxXEnnzNmnGsCagC97FSWEojK6Sm+ikSoR8qCFdYsTyx
 vQcDnvsN7p2yjV0+rN16RSkSkW5uyxPboJyb9ZRy/QknGoac5CnFPYSdlcnxAgmHAkrynb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rX9yQPN/D9LB0HEeOEgMD3YOGsg99Zkr9MNHuPl7Z2jepp0Tb0TYL
 1JxoAHsT2oP2XDajyRyif0J3ZI80MoXHCQPuXqvLpY+ZlC+jU8J3FSgdOtO1+4MzxSLemmxsW
 hpjZ7tyi589OcYmQoK37sw4B+Q8h/XWsEKOvldOmz6uRo8Z2P0EhbbAtTy6gWs4o5T/sRteHJ
 pLyQDGY8fq4HZtnXkzO7WoqEPQKYhIi1DfN29nyw4vB71FLEQHvKXCMRJShgjL5eC3Sa2Tt0z
 e51oiHSnLa7WNuy77x977h4tgr6ABMnffQOzF5p5a5F3cf2toZnyv9jLGeow=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 217.72.192.78
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


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




Acknowledgement sent to Michael Heerdegen <michael_heerdegen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#39169; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 18 Jan 2020 10:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.