From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Byte-compilation of custom themes Date: Sat, 20 Jan 2018 21:01:03 +0000 Message-ID: <87efmk2qk0.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516482021 5276 195.159.176.226 (20 Jan 2018 21:00:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 Jan 2018 21:00:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 20 22:00:17 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 1ed0F3-0008Rd-DM for ged-emacs-devel@m.gmane.org; Sat, 20 Jan 2018 21:59:57 +0100 Original-Received: from localhost ([::1]:35166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ed0H3-0004Iw-Jl for ged-emacs-devel@m.gmane.org; Sat, 20 Jan 2018 16:02:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ed0GH-0004IF-Sy for emacs-devel@gnu.org; Sat, 20 Jan 2018 16:01:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ed0GG-00087r-Hz for emacs-devel@gnu.org; Sat, 20 Jan 2018 16:01:13 -0500 Original-Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:35798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ed0GG-00086r-AG for emacs-devel@gnu.org; Sat, 20 Jan 2018 16:01:12 -0500 Original-Received: by mail-wm0-x229.google.com with SMTP id r78so9843337wme.0 for ; Sat, 20 Jan 2018 13:01:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:user-agent:mime-version; bh=VabAcOfJvf+r5XJLJ79TMKOZ2eRxGgA4YyaFwjGZkqI=; b=1TAw8WZMo61UUJAS/5IhS8t7bof1wn81CjdempZ+NHZtheB7xXoJw/Z1iCTXtX4746 k2CtQYT0K0jzItTIPVjZw46k3XtaxFnknhSzACFQcDyKNlB0ndrPg6Q9teWwmgf84wX0 NBJS0wvhQOpLaUG4vbBRVm9kkb8QB+nxSm05t5tPtfPOhivaPeQQb1vS8OhbvJPKelJa IMLFCjFyFqcw+uB+2Up4U6kE/XGoLHqOEwwuSYCNlq3Ne+JlwAh8fA4ahfMIwGjTfmoU R8lMBDx9h0sg2V+CqGwApzdpoKZw6at0OkRb8YR4U3UmGBivLKQJKTZ2SEKMpI7jJ7F3 H1TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=VabAcOfJvf+r5XJLJ79TMKOZ2eRxGgA4YyaFwjGZkqI=; b=HrrOZKnhEbyD6dzxPtYob+vdaJltkJcSrh9sQfyggsty1wvANFUkeggCZU7fTnjqef zXRlol71KVKR5rnDWaoReMbH3xbEqrmgQoQW0Ju+TOjoMzbb+S5wqHoHWP21ju+kUNfb +LA7Yq3f7WR20usn578XLcyGR2ZM4O/1IbGpcTOtJz5BcSzB5F3XoxwMsqNifu91s0Gi Jb2ha2rNhxbO+NGHC9f666omorC5yIF/vztRLlvzRyc7h/+Z301s+Ffl9Uo62NgTMPvd /ft1K5wbnK2kUF0bBxmnGB2JIyzDrLDTEGXUtSWOPlbmsF6B0i5SFgS22KT6BA2MPM1P EayQ== X-Gm-Message-State: AKwxytd8D3zegDNALv7TuYhccLUb2/5I/kqXF507fZJAaKZQw2G8ZN3/ KDZktU7UuC27RI5q8/KLE0Q+vINH X-Google-Smtp-Source: AH8x225AG6LxZtk730Yk4gL9xeZsAoPCnzF67kM8Vl72uNpkuDJTbLyHzPnZCT8GEOHUrhFpALrmbQ== X-Received: by 10.80.200.139 with SMTP id d11mr5354543edh.199.1516482068971; Sat, 20 Jan 2018 13:01:08 -0800 (PST) Original-Received: from localhost ([2a02:8084:4f41:8c80:9929:5bdb:4629:fab8]) by smtp.gmail.com with ESMTPSA id f16sm8219836edj.65.2018.01.20.13.01.07 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 Jan 2018 13:01:08 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::229 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:222111 Archived-At: This email is a follow-up to a question[1] I asked on the Emacs Stack Exchange Q&A forum a couple of months ago, which received no answers in the interim. [1] https://emacs.stackexchange.com/q/36892/15748 I am wondering why custom themes are ordinarily left non-byte-compiled, based on the following observations: 1. All built-in themes under etc/themes/ set the file variable no-byte-compile to t. 2. The function custom-available-themes in lisp/custom.el considers only *-theme.el and not *-theme.elc files under custom-theme-load-path. 3. The command load-theme in lisp/custom.el is able to load *-theme.elc files under custom-theme-load-path, but does so only if there is no corresponding source file in the same directory. 4. The manual nodes '(elisp) Custom Themes', '(emacs) Custom Themes' and '(emacs) Creating Custom Themes' make no mention of byte-compilation. Is this "aversion" to byte-compilation of custom themes intentional? If so, what is the reasoning behind it? Should the documentation be extended to describe it? If not, should the functions custom-available-themes and load-theme be made made less picky about which file extensions they consider? Should the behaviour of the latter be likened more to the that of the load function in src/lread.c? FWIW, I have not noticed any issues when using my own byte-compiled custom themes. The only minor nuisance is having to keep the source files separate from their translations and out of custom-theme-load-path. Thanks, -- Basil