From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Byte-compilation of custom themes Date: Tue, 30 Jan 2018 21:26:37 -0500 Message-ID: References: <87efmk2qk0.fsf@tcd.ie> <87vafjhu04.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1517365494 18655 195.159.176.226 (31 Jan 2018 02:24:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Jan 2018 02:24:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 31 03:24:50 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egi4v-0004T8-8K for ged-emacs-devel@m.gmane.org; Wed, 31 Jan 2018 03:24:49 +0100 Original-Received: from localhost ([::1]:54270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egi6v-0007gO-Uh for ged-emacs-devel@m.gmane.org; Tue, 30 Jan 2018 21:26:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egi6l-0007dU-CV for emacs-devel@gnu.org; Tue, 30 Jan 2018 21:26:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egi6i-0007zs-27 for emacs-devel@gnu.org; Tue, 30 Jan 2018 21:26:43 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:47746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egi6h-0007yC-Qp for emacs-devel@gnu.org; Tue, 30 Jan 2018 21:26:39 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w0V2QbCK031414; Tue, 30 Jan 2018 21:26:38 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C9AB360529; Tue, 30 Jan 2018 21:26:37 -0500 (EST) In-Reply-To: <87vafjhu04.fsf@tcd.ie> (Basil L. Contovounesios's message of "Tue, 30 Jan 2018 22:16:59 +0000") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6211=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6211> : inlines <6348> : streams <1777581> : uri <2583179> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:222325 Archived-At: > diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi > index 6c7ca260ab..7fea507fd0 100644 > --- a/doc/lispref/customize.texi > +++ b/doc/lispref/customize.texi > @@ -1432,7 +1432,9 @@ Custom Themes > would be evaluated when loading the theme, but that is bad form. > To protect against loading themes containing malicious code, Emacs > displays the source file and asks for confirmation from the user > -before loading any non-built-in theme for the first time. > +before loading any non-built-in theme for the first time. As > +such, themes are not ordinarily byte-compiled, and source files > +always take precedence when Emacs is looking for a theme to load. > > The following functions are useful for programmatically enabling and > disabling themes: Sounds good to me. > Why are built-in themes not exempt to this safety net, though? They're not? There is code which tries to exempt them, so if they're not, it's a bug in that code. > Finally, would you care to post your helpful explanation as an answer to > my Stack Exchange question, or would you rather I paraphrased this > thread? Feel free to post my answer there, Stefan