From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: defconst risky-local (WAS: Question about defcustom and load-history) Date: Mon, 6 May 2019 18:57:17 -0400 Message-ID: References: <87r2anzfbk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34568"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 07 00:57:42 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hNmYH-0008u7-84 for ged-emacs-devel@m.gmane.org; Tue, 07 May 2019 00:57:41 +0200 Original-Received: from localhost ([127.0.0.1]:35008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNmYG-0001vs-4B for ged-emacs-devel@m.gmane.org; Mon, 06 May 2019 18:57:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNmY7-0001vk-CH for emacs-devel@gnu.org; Mon, 06 May 2019 18:57:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNmY6-0000Ba-8Z for emacs-devel@gnu.org; Mon, 06 May 2019 18:57:31 -0400 Original-Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]:42987) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNmY6-0000BP-1g for emacs-devel@gnu.org; Mon, 06 May 2019 18:57:30 -0400 Original-Received: by mail-oi1-x22b.google.com with SMTP id k9so10828656oig.9 for ; Mon, 06 May 2019 15:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ybMccjQ1oNC6NPJuASaFSZgx/YkuNgxd3Zm8LooMWCA=; b=s2XKljHl0xI99FnhV9o7SFrlL6d1TYiZ9KQQP9Cb0pEXL6pQLeEUvinoIqCmU5THKG Sel1dhTyZXRdo5V/RnV2i383iYZf7FyvszsRoG0DvIMMRnoOomn31X4K7PBadVzPC3EV mAEOORjGLEmZIiI87X9y5ylUMxWWkl5clytJDMwBtvH+wHytq57FJfusgfSOv5cHWgBh 9imL3n8mRt6K5JbVqTysu5/KLv34KeOw5iNPXm9v3RBep5IZa52WSuX7axmbB8pe9YOO +h7ngR4Z8gbL/qxPrG68kGAgYKFwCgL/ojyjUQWO5ijzwlQvLkm1DAqT4x2XDhsEbEKd APKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ybMccjQ1oNC6NPJuASaFSZgx/YkuNgxd3Zm8LooMWCA=; b=fhVwCcfL+yLnJXTPRZ4Bv/LuX2EGtoNTQr/rsO2V8lQQ9oAITrTu8Tl3UfSWTdjpvS UCraGQAbNv2QARsvlrHAqx2ge7TjGGBSR2xMbDZKllVRyw9G6k1Q/U/hKzAVLZ6TV48r kXOev+KQ09mFKDXJhyLrRjHUXmOl5bhiTlFpH46Xnn5hxnt1fV95ChC79IwoQlf+N2v5 zNdIfEEf/havYDPyBcrqbnDc3CLncBi9zW5/d6r27ArdR54arbbas7+e4F9NsaUPhrGs drzD1K+lQLNg/OjMevBfa10q6oA0nPXOykgEMAfbj3NWpX+lA3IXR4XZSKVTrokXOtjT ckfg== X-Gm-Message-State: APjAAAVRIaX1Mnf61Xo9CYaeiLFwVQ+qWEKqcqnUlIqMxTYolAFiqOXY pYVf4ymGIkKfk/+8dibpifinYwHjU+uKUXtXqis= X-Google-Smtp-Source: APXvYqxyImli3Y2ju95z8ixL7ya8zmY1nLkhhgWc011wsbFxsrMfE4yzKofGGB89IrKphst21X1PBdpH70pw5o+fkdQ= X-Received: by 2002:aca:bbc3:: with SMTP id l186mr388246oif.23.1557183447892; Mon, 06 May 2019 15:57:27 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236217 Archived-At: On Mon, 6 May 2019 at 12:38, Stefan Monnier wrote: > @@ -827,19 +839,12 @@ usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */) > - Fset_default (sym, tem); > - Fput (sym, Qrisky_local_variable, Qt); > + Fset_default (sym, tem); /* FIXME: set-default-toplevel-value? */ > + Fput (sym, Qrisky_local_variable, Qt); /* FIXME: Why? */ I would guess the risky-local-variable thing is because defconst variables would generally not be expected to be changed, file-locally or otherwise (though nothing stops it from happening).