From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#37256: 27.0.50; Error (wrong-type-argument stringp nil) thrown when calling (load-theme 'solarized-dark t) Date: Sun, 1 Sep 2019 09:59:53 -0700 Organization: UCLA Computer Science Department Message-ID: <22d98203-0d48-5a37-12dd-61f738ac96a0@cs.ucla.edu> References: <811ad72f-0968-3837-7517-1aed2efb54d6@orthen.net> <83a7bo804h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------DF4AC580960D43CD0BB5E0E5" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="67501"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cc: 37256-done@debbugs.gnu.org To: Eli Zaretskii , Benjamin Orthen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 01 19:01:35 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i4TEM-000HNp-1c for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Sep 2019 19:01:34 +0200 Original-Received: from localhost ([::1]:59148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4TEK-0003HG-Je for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Sep 2019 13:01:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60508) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4TE0-0003Gs-ES for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 13:01:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4TDv-0005XI-MJ for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 13:01:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4TDq-00051A-3b for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 13:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4TDq-0003J5-0U for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 13:01:02 -0400 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Sep 2019 17:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 37256 X-GNU-PR-Package: emacs Mail-Followup-To: 37256@debbugs.gnu.org, eggert@cs.ucla.edu, benjamin@orthen.net Original-Received: via spool by 37256-done@debbugs.gnu.org id=D37256.156735720712598 (code D ref 37256); Sun, 01 Sep 2019 17:01:01 +0000 Original-Received: (at 37256-done) by debbugs.gnu.org; 1 Sep 2019 17:00:07 +0000 Original-Received: from localhost ([127.0.0.1]:57130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4TCx-0003Gh-0H for submit@debbugs.gnu.org; Sun, 01 Sep 2019 13:00:07 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4TCu-0003Ff-6b for 37256-done@debbugs.gnu.org; Sun, 01 Sep 2019 13:00:05 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 783391600AE; Sun, 1 Sep 2019 09:59:58 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rrF-0MRYXrXP; Sun, 1 Sep 2019 09:59:57 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B917E1600BF; Sun, 1 Sep 2019 09:59:57 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xTjjZhd3a3GD; Sun, 1 Sep 2019 09:59:57 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8E2471600AE; Sun, 1 Sep 2019 09:59:57 -0700 (PDT) In-Reply-To: <83a7bo804h.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166142 Archived-At: This is a multi-part message in MIME format. --------------DF4AC580960D43CD0BB5E0E5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > Paul, I think this is because user-emacs-directory is now nil > initially. Yes, that's it. Thanks for reporting it. I installed the attached patch. I looked for preloaded defcustoms with similar issues, but didn't find any. --------------DF4AC580960D43CD0BB5E0E5 Content-Type: text/x-patch; name="0001-Fix-load-theme-bug-with-user-emacs-directory.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Fix-load-theme-bug-with-user-emacs-directory.patch" >From ba12c5467dadd228a00bcf972fd8415c26f4a4bd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 1 Sep 2019 09:56:40 -0700 Subject: [PATCH] Fix load-theme bug with user-emacs-directory * lisp/custom.el (custom-theme-directory): Delay initialization, since the value depends on user-emacs-directory (Bug#37256). --- lisp/custom.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/custom.el b/lisp/custom.el index 9bd9712b65..2e42ea73c1 100644 --- a/lisp/custom.el +++ b/lisp/custom.el @@ -1137,6 +1137,7 @@ custom-theme-directory The command `customize-create-theme' writes theme files into this directory. By default, Emacs searches for custom themes in this directory first---see `custom-theme-load-path'." + :initialize #'custom-initialize-delay :type 'string :group 'customize :version "22.1") -- 2.17.1 --------------DF4AC580960D43CD0BB5E0E5--