From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: defcustom standard value and byte-compilation Date: Wed, 11 Mar 2015 09:54:39 -0400 Message-ID: References: <87r3sxukh4.fsf@gnu.org> <8761a8rohr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426082098 3056 80.91.229.3 (11 Mar 2015 13:54:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2015 13:54:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 11 14:54:50 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 1YVh5z-00027G-2D for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2015 14:54:47 +0100 Original-Received: from localhost ([::1]:54765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVh5y-0001sS-Io for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2015 09:54:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVh5v-0001sF-RU for emacs-devel@gnu.org; Wed, 11 Mar 2015 09:54:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVh5s-0001d6-EX for emacs-devel@gnu.org; Wed, 11 Mar 2015 09:54:43 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVh5s-0001d0-AT for emacs-devel@gnu.org; Wed, 11 Mar 2015 09:54:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroTAPOG1lRLd/Fx/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWKAsLNBIUGA2IXAjOIwELII9/FoQUBalygUUihAoignMBAQE X-IPAS-Result: AroTAPOG1lRLd/Fx/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWKAsLNBIUGA2IXAjOIwELII9/FoQUBalygUUihAoignMBAQE X-IronPort-AV: E=Sophos;i="5.09,536,1418101200"; d="scan'208";a="113275152" Original-Received: from 75-119-241-113.dsl.teksavvy.com (HELO pastel.home) ([75.119.241.113]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Mar 2015 09:54:39 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1C83BFEF; Wed, 11 Mar 2015 09:54:39 -0400 (EDT) In-Reply-To: <8761a8rohr.fsf@gnu.org> (Tassilo Horn's message of "Wed, 11 Mar 2015 08:18:24 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:183783 Archived-At: > I don't think this is an option for AUCTeX as it supports Emacs versions > down to 21.4 and also XEmacs. Of course, I think that's a mistake ;-) > And several parts make use of the dynamic binding of locals. :-( That's no problem, lexical-binding supports dynamically scoped variables as well (you just have to declare them beforehand via (defvar )). > But customize shows the value of the expression, not the expression > itself. IIRC there's a way to get the expression rather than the value. > Ok, but couldn't the standard form be at least macroexpanded? That > shouldn't cause any harm and would take care of the typical use-case > where one uses macros of a package which might not be available at > load-time. Changing the defcustom behavior in Emacs-25.1 to be the same in dynamic-binding than with lexical-binding wouldn't help you with XEmacs and Emacs-21.4. Stefan