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#58513: describe-function should say that defconst variables are constant Date: Fri, 14 Oct 2022 14:40:27 +0200 Message-ID: <87v8om8tok.fsf@gnus.org> References: <87zgdy8ug8.fsf@gnus.org> <8fae3292e6c1b175853b557060d05487@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33218"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Kangas , 58513@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 14 14:41:53 2022 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 1ojK0f-0008TJ-Kf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 14:41:53 +0200 Original-Received: from localhost ([::1]:60916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojK0e-00084f-Cb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 08:41:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojJzr-00082x-Io for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 08:41:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojJzq-0005oD-D8 for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 08:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojJzq-0001qZ-4P for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 08:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2022 12:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58513 X-GNU-PR-Package: emacs Original-Received: via spool by 58513-submit@debbugs.gnu.org id=B58513.16657512427039 (code B ref 58513); Fri, 14 Oct 2022 12:41:02 +0000 Original-Received: (at 58513) by debbugs.gnu.org; 14 Oct 2022 12:40:42 +0000 Original-Received: from localhost ([127.0.0.1]:36151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojJzV-0001pS-Or for submit@debbugs.gnu.org; Fri, 14 Oct 2022 08:40:41 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:46230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojJzT-0001pF-Bm for 58513@debbugs.gnu.org; Fri, 14 Oct 2022 08:40:40 -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: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=eQJuNs00PRn88hRvvxIGH6taoXpIpT4kXSR6ivobyLQ=; b=OTXOWk8HU2kBftH3joB4v4xQ7W rZEiDqXFIkXc1ViCrAOQIuCzEtlJWMICnoQ5F9xsfR4xfqCB4bAgg0ZOS4gD1wJrSTVQ7Sg6SRQ0B B2qReQHxJWSg7+G8OnKZemiOmDPZVsuFImN1Fm8yKESV9kpLXrAUQduhYzkrUZzebg30=; Original-Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojJzK-0005yU-03; Fri, 14 Oct 2022 14:40:32 +0200 In-Reply-To: <8fae3292e6c1b175853b557060d05487@webmail.orcon.net.nz> (Phil Sainty's message of "Sat, 15 Oct 2022 01:35:41 +1300") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWHX0hULyM/KiX/ //9fL2cNAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YKDgsSKZC1OvMAAAHESURBVCjPRZFNi5MxEMen sivsbYU+4vbuwX6KIj4Fe9otm2DmpmyCM59CRBfsaZ/SBJNbpRM28ylND+LcfmTm/0IA/s8MzONm nM1nZ7iAITlrvM0PNwPCUMg8+Rgnf8uwcGQmN6Xt7Z3C8I5k8my3Zl3gta1fxePaxssN3CSKzafk 4p2FNyEcZDABx3kCw07MwihfzRFqRrd0vtDVYIHEOjbE7t5byPRwcsao+yQdrDSDVVO87JDijZ7n 0G9aOQwrMNpyf2kmv1wB6KnYDm9zWcEL1Zgs1LCPH/BYxEeEFEP8qR3QFhDTbNKqz2osPPv25aws 3BNEz6EQa0XCbkoa6VWpFBCapSptpjqGLsCjNr1m3mq/kaTarlGOaLtPZG23qNLjiFJRPW7USYBW nQh3eKQEUjf5sDyOumva11B+L08jIyNEJfq1fPKMFkEKmh8A5zwLUKz4DYbu5RYwZSLu4oq8hgmR XGu12B6nN9Srmu9abAtoEgUrOefdFvQjH4P6EvJ9gobGf871e2oX56CJQ+Y9y/o9TFR53cpeZAwQ T5HSWPY72fRfyNnI2iZWDJAbpt42yAEZel2XQkB3jwh/dKf/5i+i6AE30+DuCQAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMi0xMC0xNFQxMToxODo0MSswMDowMKTBsXkAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjItMTAtMTRUMTE6MTg6NDErMDA6MDDVnAnFAAAAAElFTkSuQmCC X-Now-Playing: Jako Maron's _L'Esprit de Nyege 2020_: "Mde Prototrash Bobr" 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:245429 Archived-At: Phil Sainty writes: > It does at least one thing different: if you load or eval a defconst > for a variable which already exists, the value is updated. Yes, that's true. And we could start adding a symbol property saying that a constant is meant to be constant, and perhaps start warning if people change it, but that would make things slower for basic things like `setq', so I'm pretty sure it's not worth it. We could use that property to make describe-function say that the variable isn't meant to be changed, though. But is it worth adding to the symbol plist just for that? Hm...