From unknown Wed Aug 20 05:43:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49730: 28.0.50; There should be a way to mark a generalised variable as obsolete Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jul 2021 07:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49730 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 49730@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162719852621078 (code B ref -1); Sun, 25 Jul 2021 07:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jul 2021 07:35:26 +0000 Received: from localhost ([127.0.0.1]:47469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7YfV-0005Tu-U5 for submit@debbugs.gnu.org; Sun, 25 Jul 2021 03:35:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:58644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7YfR-0005Tk-QI for submit@debbugs.gnu.org; Sun, 25 Jul 2021 03:35:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7YfR-0006mc-JL for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 03:35:21 -0400 Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:59910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7YfQ-0006qs-3k for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 03:35:21 -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:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KUmZxthv4+Cu+CrLj2WSOIuTR1lA4wFfb21NbRrG9sA=; b=ACi7Hf9FMPDd/+eKhB6wc+CE/o PgVzdOrTeuQE8BnMs7Lt2i9fM+XX3JrGj5F8q069Gd7zrjfml+2rQQBnQGeGWCxoeHuSBZriR55oV 9cvYCJz4qJbjwTgaiyliPFrRicTRnhh4qL/ybogenyfskI+yskmy2ec8WmYgPjKpAU0g=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7YfL-0006c3-9D for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 09:35:17 +0200 From: Lars Ingebrigtsen X-Now-Playing: Bobbie Gentry's _The Girl From Chickasaw County (6): Fancy_: "Wedding Bell Blues" Date: Sun, 25 Jul 2021 09:35:14 +0200 Message-ID: <871r7myhfx.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: We don't have a way to make a generalised variable obsolete, I think? I think it would be helpful if we had. I haven't looked at how to implement it, but marking the symbol in some way, and then having the byte compiler examine it (when expanding setf forms) and outputting a warning doesn't immediately seem [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) We don't have a way to make a generalised variable obsolete, I think? I think it would be helpful if we had. I haven't looked at how to implement it, but marking the symbol in some way, and then having the byte compiler examine it (when expanding setf forms) and outputting a warning doesn't immediately seem impossible. In GNU Emacs 28.0.50 (build 55, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-07-24 built on elva Repository revision: 5431a58e86d3f2579c1edf1dc8d7074de73ac694 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Aug 20 05:43:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49730: 28.0.50; There should be a way to mark a generalised variable as obsolete Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Aug 2022 19:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49730 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 49730@debbugs.gnu.org Received: via spool by 49730-submit@debbugs.gnu.org id=B49730.16611112091716 (code B ref 49730); Sun, 21 Aug 2022 19:47:02 +0000 Received: (at 49730) by debbugs.gnu.org; 21 Aug 2022 19:46:49 +0000 Received: from localhost ([127.0.0.1]:36851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPquH-0000Rc-76 for submit@debbugs.gnu.org; Sun, 21 Aug 2022 15:46:49 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPquE-0000RK-86 for 49730@debbugs.gnu.org; Sun, 21 Aug 2022 15:46:47 -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:Date:References: In-Reply-To:Subject:To:From:Sender:Reply-To:Cc: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=zlL2SZey7tGtM0PLdSpsrcIMj3oZTdZDyRjtr/8PPHY=; b=XrZdsW7doN4xARLc+kT2ClMqd2 DW4FBI/RKCE7AEOoKSIw3yPKygVYtBs/OzLVjYchrn7dhYEA9E50fn3fb01xZKAo0IAsBadj+wAr4 AT/qt5aOgsxh14Av4ntvTgNXXVwVA9r3RcOocDJqiKGEp61c/P5rocaSPIATpMhDweUg=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPqu5-0005TS-Pd for 49730@debbugs.gnu.org; Sun, 21 Aug 2022 21:46:39 +0200 From: Lars Ingebrigtsen In-Reply-To: <871r7myhfx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 25 Jul 2021 09:35:14 +0200") References: <871r7myhfx.fsf@gnus.org> X-Now-Playing: Ana da Silva & Phew's _Island_: "Konnichiwa!" Date: Sun, 21 Aug 2022 21:46:33 +0200 Message-ID: <877d319y7a.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > We don't have a way to make a generalised variable obsolete, I think? I > think it would be helpful if we had. > > I haven't looked at how to implement it, but marking the symbol in some > way, and [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > We don't have a way to make a generalised variable obsolete, I think? I > think it would be helpful if we had. > > I haven't looked at how to implement it, but marking the symbol in some > way, and then having the byte compiler examine it (when expanding setf > forms) and outputting a warning doesn't immediately seem impossible. It was very simple. Now added to Emacs 29. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 15:46:54 2022 Received: (at control) by debbugs.gnu.org; 21 Aug 2022 19:46:54 +0000 Received: from localhost ([127.0.0.1]:36854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPquM-0000Rs-F6 for submit@debbugs.gnu.org; Sun, 21 Aug 2022 15:46:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPquK-0000RU-3c for control@debbugs.gnu.org; Sun, 21 Aug 2022 15:46:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uT0FSvqxc+sfAeMu2kBtONxoDdETpHDH9YZ1JVCi/+k=; b=KiLltWJjl22ZXPdvXIYE28CDV1 qTeOsm9sai3Q0hz6yNsvxlGX6pLRmHubSifXVMUXO1o0KCx5r/20mHqrgPpODD117FuQquhUvDhfw H+lPcaeW8xz6uxqz3N5VP3LPkGiLNXUHYK1hzANUlczqP/G37oSw7eGLih9S3rR6D0qQ=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPquC-0005Tg-25 for control@debbugs.gnu.org; Sun, 21 Aug 2022 21:46:46 +0200 Date: Sun, 21 Aug 2022 21:46:43 +0200 Message-Id: <875yil9y70.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49730 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 49730 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 49730 29.1 quit