From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: defcustom standard value and byte-compilation Date: Thu, 12 Mar 2015 06:29:47 -0700 (PDT) Message-ID: <90c69812-9b2c-464a-bbb8-02e14503e038@default> References: <87r3sxukh4.fsf@gnu.org> <8761a8rohr.fsf@gnu.org> <87egovr2xl.fsf@gnu.org> <87ioe6u0dy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426167015 21087 80.91.229.3 (12 Mar 2015 13:30:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2015 13:30:15 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 12 14:30:02 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YW3BZ-00049l-Th for ged-emacs-devel@m.gmane.org; Thu, 12 Mar 2015 14:30:02 +0100 Original-Received: from localhost ([::1]:59962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW3BZ-0004Lb-32 for ged-emacs-devel@m.gmane.org; Thu, 12 Mar 2015 09:30:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW3BV-0004Kb-BN for emacs-devel@gnu.org; Thu, 12 Mar 2015 09:29:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YW3BQ-0006ri-9h for emacs-devel@gnu.org; Thu, 12 Mar 2015 09:29:57 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:40070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW3BQ-0006rK-2I; Thu, 12 Mar 2015 09:29:52 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t2CDToeo005248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Mar 2015 13:29:51 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t2CDTnV9011174 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 12 Mar 2015 13:29:49 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t2CDTnAe023076; Thu, 12 Mar 2015 13:29:49 GMT In-Reply-To: <87ioe6u0dy.fsf@gnu.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183819 Archived-At: > > are you perhaps looking for State > Show Saved Lisp Expression? >=20 > that doesn't really show the Lisp expression which computes the > standard value, it just shows the standard value as Lisp expression... Right. Actually, it shows a Lisp expression which, if evaluated, returns the standard value. But it does not show the actual initial code that produced the standard value. For example, I have this: (defcustom foo (if (> emacs-major-version 23) ; `S-TAB' '([backtab]) '([S-tab] [S-iso-lefttab])) And the menu option shows this as the Lisp expression: '([backtab]) ; note the quote It does not show the standard value, which is ([backtab]). I'd be surprised if the expression that computes the initial value is saved anywhere (besides in the source file).