From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Rankin Newsgroups: gmane.emacs.help Subject: lexical binding changes symbol standard-value property Date: Wed, 29 Jun 2016 23:51:21 +1000 Message-ID: <1467208281.2809432.651951793.477B9611@webmail.messagingengine.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1467212951 23663 80.91.229.3 (29 Jun 2016 15:09:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 15:09:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 29 17:09:03 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bIH6g-0006ai-Qq for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jun 2016 17:08:50 +0200 Original-Received: from localhost ([::1]:44324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIH6g-0002TO-48 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jun 2016 11:08:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIFtz-0000y7-9Q for help-gnu-emacs@gnu.org; Wed, 29 Jun 2016 09:51:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIFtv-0002QG-KQ for help-gnu-emacs@gnu.org; Wed, 29 Jun 2016 09:51:38 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:57631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIFtt-0002LQ-5X for help-gnu-emacs@gnu.org; Wed, 29 Jun 2016 09:51:35 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 1DEBB201C2 for ; Wed, 29 Jun 2016 09:51:22 -0400 (EDT) Original-Received: from web1 ([10.202.2.211]) by compute5.internal (MEProxy); Wed, 29 Jun 2016 09:51:22 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=Wor rpqa120FtIT6CeTeROEnz56k=; b=muYqxNZUo7aTIx9q6czHFL8YAQvipYz6+e1 3kVTFd7zVq6V7F373v7k/wRngi00WF+JPJRZs+bvsAhuMs5hZCBAehMdmZWA9ajJ ETeu9QAPv1UFb8aZcQpJwuVoirLLqxiCrl2Nwn1D7zoTTx6U9etWADafdSXIsB2s GZpD7Vzc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=Worrpqa120FtIT6CeTeROEnz56k=; b=JYxKC c4+jq+9TEzGwlqKHODhj5UjJF1gc/O9fysumml4SshzHEiEsihVca2nt7UMQ6pp+ TRMZnugq4504VuDWPC0At7UbEF6qsqZ6ZdH5H0JpTkZ94O1XRDp6bPxYjMbfS4pU tFCrKO4mKYB2tDcVFw+JOiBli94tdcPOzsKAXM= Original-Received: by mailuser.nyi.internal (Postfix, from userid 99) id DD90B6A553; Wed, 29 Jun 2016 09:51:21 -0400 (EDT) X-Sasl-Enc: zJJZ0z7sRfU9VjxSDAQf3yT9QwB06QW2xNhRMpN5MhwL 1467208281 X-Mailer: MessagingEngine.com Webmail Interface - ajax-92c7b58a X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.27 X-Mailman-Approved-At: Wed, 29 Jun 2016 11:08:08 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110658 Archived-At: Something strange is going on with lexical-binding and defcustom... (defcustom dummy-var t "This is a test var.") ;; => dummy-var (car (get 'dummy-var 'standard-value)) ;; => t (setq lexical-binding t) ;; => t (defcustom dummy-var t "This is a test var.") ;; = dummy-var (car (get 'dummy-var 'standard-value)) ;; => (funcall (function (closure (t) nil t))) Why is the standard-value property of dummy-var changing? I kinda need it to be consistent... I can resolve with: (eval (car (get 'dummy-var 'standard-value) ;; => t ...but not sure about using (eval ...) Ideas? -- Paul W. Rankin www.paulwrankin.com