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: Mon, 17 Oct 2022 12:41:13 +0200 Message-ID: <874jw2g2ba.fsf@gnus.org> References: <87zgdy8ug8.fsf@gnus.org> <8fae3292e6c1b175853b557060d05487@webmail.orcon.net.nz> <87v8om8tok.fsf@gnus.org> <87edva8seu.fsf@gnus.org> <87sfjq7a91.fsf@gnus.org> <875ygl5roe.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30313"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: psainty@orcon.net.nz, 58513@debbugs.gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 17 12:43:14 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 1okNaU-0007g6-J8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 12:43:14 +0200 Original-Received: from localhost ([::1]:33404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okNaT-0008Ks-4m for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 06:43:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okNZM-0007PT-87 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 06:42:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okNZK-00065j-O9 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 06:42:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okNZK-0001ta-8k for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 06:42: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: Mon, 17 Oct 2022 10:42: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.16660033007258 (code B ref 58513); Mon, 17 Oct 2022 10:42:02 +0000 Original-Received: (at 58513) by debbugs.gnu.org; 17 Oct 2022 10:41:40 +0000 Original-Received: from localhost ([127.0.0.1]:47438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okNYm-0001sk-20 for submit@debbugs.gnu.org; Mon, 17 Oct 2022 06:41:40 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:54526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okNYk-0001sV-70 for 58513@debbugs.gnu.org; Mon, 17 Oct 2022 06:41:26 -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=6dJYlglM6vgMYFxcjCGWcHcChQfunmr1mZYHhqBBO5M=; b=l9KIxOVqB+5Dz5AvEMEVL7NlW8 cyc87TJipYcNYlHizluDGhhfysApZjySeWULO0C0IHXYs5gKqv7ywY5TdR240My7PprzSWNbnEmVQ nslvA2uNb1Iy0pRpjB363EGdj60+TZ8jhCZ9eCGwXMaTTV6Jncg1y7dlT2iYmN+Om6gs=; 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 1okNYZ-0007Xn-Ko; Mon, 17 Oct 2022 12:41:17 +0200 In-Reply-To: (Stefan Kangas's message of "Mon, 17 Oct 2022 05:41:09 +0000") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUhHh0sKylYVlZ8 i6a3trb///8ShPSjAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YKEQolBTvS29oAAAGKSURBVDjLddLr tcMgCABgyARgFvDRBSou0BP2n+kC9mFuG09/9PgFBBSAYxU+rTIAAH9Ac4BfIDBXuoLtDPQF9AX1 BYRwBgshZIIo8wNpBWZYYOYKAErfwJ6K2r5A1BXZmPo3WC6CM9QZAYTI+X3GXmeI94FYHTig9Wcu OwJR/0HxGXvB3Rucf5t0j7Bf9BFQa3YQz1X9K7+dCYXeQD5fWmAcL/DcSPsCPeB500vEeELUnD+g apAqUbyZbKl8SoSqKg6M2fYx3yZwQHfYHLa8D7Ah1QdaqqP7IAOssJtDeyC3PiaUSBWQmgJuYqe3 zuhjmUBbUxspjy7SacsfsIhsYxhiq3ygW37vYUJO5Q3EdWTgpAGtRrkOuRoM3fUwuC9QMqeiDtbL CnebaFVt1rweD6vYgAxSrzZI1Zta9/poNmCMiC2nhB7hR3Sp8U4ILKJY76KHf6/32xEZRQboxfoJ fVxARFi6KxA55LxpWwp2PfbaZAyrZXjJsXpcbZN1+UXa+OD/vvQ24aqqPyJujKlnYVEjAAAAJXRF WHRkYXRlOmNyZWF0ZQAyMDIyLTEwLTE3VDEwOjM3OjA0KzAwOjAwL4ofHwAAACV0RVh0ZGF0ZTpt b2RpZnkAMjAyMi0xMC0xN1QxMDozNzowNCswMDowMF7Xp6MAAAAASUVORK5CYII= X-Now-Playing: Joni Mitchell's _Archives: The Reprise Years (3)_: "Marcie" 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:245712 Archived-At: Stefan Kangas writes: > So, to give a somewhat contrived example, you can still break any > mathematical calculation in Emacs with: > > (setq float-pi 9) > > The only way to not have your code break in the face of that is to > copy-paste the literal 3.141592... everywhere. Yeah, but you can make the same argument for functions. We allow redefining `+' (and there's no warnings or nothing), but people don't guard against that, either. That said, we (in effect) have markup stating the intention for `float-pi' to be a constant, so adding warnings when people redefine it makes sense (because it's more likely that somebody does that as a mistake instead of mistakenly redefining `+').