From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#43780: 27.1; defvaralias and define-obsolete-variable-alias Date: Tue, 6 Oct 2020 17:06:30 -0700 (PDT) Message-ID: References: <877ds3rq0y.fsf@web.de> <015ba27a-25b0-402d-b23e-ef358b586540@default> <877ds3hrpe.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17864"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43780@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 07 02:24:07 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 1kPxFX-0004Y6-Bh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Oct 2020 02:24:07 +0200 Original-Received: from localhost ([::1]:51956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPxFW-00066M-Db for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Oct 2020 20:24:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPwz0-00085e-Qd for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2020 20:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42927) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPwz0-0003Hn-F2 for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2020 20:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPwz0-0005vd-8w for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2020 20:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Oct 2020 00:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43780 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 43780-submit@debbugs.gnu.org id=B43780.160202920322760 (code B ref 43780); Wed, 07 Oct 2020 00:07:02 +0000 Original-Received: (at 43780) by debbugs.gnu.org; 7 Oct 2020 00:06:43 +0000 Original-Received: from localhost ([127.0.0.1]:54472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPwyh-0005v2-Gg for submit@debbugs.gnu.org; Tue, 06 Oct 2020 20:06:43 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:57694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPwye-0005un-Tn for 43780@debbugs.gnu.org; Tue, 06 Oct 2020 20:06:42 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 097009cV096217; Wed, 7 Oct 2020 00:06:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=464OMFIWg6ndOTLHOP7mpulf9MpW6zCU1j67DlO+/Co=; b=lYCHfiMJ+sCnM4jIB3kCerN3hyAmW18ohsjfSWJVZGG/SSchX9HO7A3Bm7i0gmP2YrJg ykRZfxfUkRnv9S1Wf6CPTGpDpF+hejEPYy40L+QkfsYsEXWSN/ua6Jh3dozRJpIOr2Id 6vUpRCG9/UH3n0FRcJWqUwzP6oPySkjvMTYHuFwtwQrn/uUCuebnyEFzplwnqIhakrik QJOS908sKXWrUxnddAh7AyXp4m4WA7D/hzH9NYWTdA6PqWaKIerdAuWNOO4a/BRpnltS xnobgJSWptzzBFRds/Z3qzaB35XSNQnNCDhp3jnWg7NCQ1Izxnt1RfyBqnxnb1CmWGXV sw== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 33ym34m4xw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 07 Oct 2020 00:06:33 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09700AhT007408; Wed, 7 Oct 2020 00:06:32 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 33y37xs1rm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 07 Oct 2020 00:06:32 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 09706VLk021540; Wed, 7 Oct 2020 00:06:32 GMT In-Reply-To: <877ds3hrpe.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9766 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 malwarescore=0 suspectscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010060158 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9766 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 clxscore=1015 bulkscore=0 spamscore=0 malwarescore=0 phishscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010060158 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:189953 Archived-At: > Since this bug report is just about one example; and since your tried > "fix", when it had worked, would also have had an undesired global > effect - what would be your favorite solution? >=20 > Would it make sense if Emacs provided a file-local variable with which > you could specify an Emacs version and the effect would be that for > compiling that file all warnings about obsolete stuff would be > suppressed if the obsolete declaration happened in an Emacs version > newer than what you specified? So like >=20 > ;;; byte-comp-suppress-obsolete 23.1 >=20 > would have the effect that only stuff that has been obsolete before 23.1 > would be reported? Sorry, but I don't have a plan/solution. IMHO, that variable should never have been renamed. If the renaming (done in 27.1, for dubious reasons) could be reverted that would be great. Or just remove the obsolete part - have two aliases (no big deal, and probably the best way to repair the damage at this point). The previous name was better, and in any case there was no need (no good reason) to apply such a trivial, gratuitous renaming, even if the new name were (mistakenly) considered better. See https://lists.gnu.org/archive/html/emacs-devel/2020-10/msg00326.html I have no hope that this (trivial) bug (#43780) will be fixed, and I have no other good solution for it (besides removing the obsolete labeling). Any code that uses the old name will lead to a compiler warning now. So be it. I really wish this kind of thing didn't happen. No good purpose was served. That's really the lesson here. If that gets learned somehow then the bother caused by this bug will have been worth it.