From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Wojciech Kozlowski Newsgroups: gmane.emacs.bugs Subject: bug#37258: 27.0.50; custom-theme-directory variable is set to nil before init.el loads causing load-theme to fail Date: Sun, 01 Sep 2019 18:40:53 +0200 Message-ID: <0c4c584e19cba002da3c33094d0deec09749940d.camel@wojciechkozlowski.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78322"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) To: 37258@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 01 19:04:32 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 1i4THB-000KBu-FG for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Sep 2019 19:04:29 +0200 Original-Received: from localhost ([::1]:59178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4TH9-0003hJ-NW for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Sep 2019 13:04:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60992) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4TGp-0003hB-1I for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 13:04:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4TGn-000500-Me for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 13:04:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48315) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4TGn-0004zZ-GK for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 13:04:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4TGk-0003ON-LU for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 13:04:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wojciech Kozlowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Sep 2019 17:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37258 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156735738312936 (code B ref -1); Sun, 01 Sep 2019 17:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Sep 2019 17:03:03 +0000 Original-Received: from localhost ([127.0.0.1]:57136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4TFm-0003MZ-HI for submit@debbugs.gnu.org; Sun, 01 Sep 2019 13:03:02 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4SuS-0002ii-8q for submit@debbugs.gnu.org; Sun, 01 Sep 2019 12:41:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57609) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4SuQ-0007l5-Oh for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 12:41:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4SuP-0006As-DU for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 12:40:58 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44873) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i4SuP-0006AP-6i for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2019 12:40:57 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2CC9921A7B for ; Sun, 1 Sep 2019 12:40:55 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 01 Sep 2019 12:40:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= wojciechkozlowski.eu; h=message-id:subject:from:to:date :content-type:mime-version:content-transfer-encoding; s=fm1; bh= xMduw2WYaB22ZRPmemMPPxV2lF96dL9XiA9OWU1VJ3w=; b=e8Qoa+7kD3kcNXxP a63bqZ9OpVfuuoecfmh8GAK5ZZ4GV0pk2nBLVsd1ZJWCjOVW0NPVzURMUX8agCQ/ 5sxba1RXRn3Ec+JNqnSxm6CunDTe5TJdB/Xs//Fbxoh+Ws+BAHgR2NAOrYt4NrV6 QIh4huxqZksJsjn8PfDzIApuxhDerBOW2djz3CKx5PApdbjjmHGNtbtZ2XgBe1xX XbMr8Z3UKj96V0ccrjuAFCuXi8Ar8SVRaaghN1/936AS2nVgZWYdRfndAwdQXej7 YuVPFvP7zYHVviEXSpblAOXnjhvNzck3gPq3OsPZaI+n/KPYRMZXUGEbwr6HO4Sj A1Rmig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=xMduw2 WYaB22ZRPmemMPPxV2lF96dL9XiA9OWU1VJ3w=; b=qmfMhcAr1iMJjdln019cjq 1zKwFBk/hoZhhMxGBQopGftzXmvhBzCiA2q+SsKuQxBSNQVSaLYRjaNBvjMJPD8z CuuHUCYBXwPSQaIwbq40RdRXwAlR1Nsv71Q4wRyq26p9iD0b/O50M75VzLF8T6AW V4dze15d2uwt+Umv5NHs336+m0Pn+sSo4BHqXE0p/gTYooPfsxPNfBpWu9ZFCR0w XunN3onGLEkp6kzsA7F3MdJENNl2BgZgGAvYqQ/0X/+DjK+oqzHhdYBDfvI1LnB+ qRrT/DQkXOccJTRNgimssoqokKlBhdO84m7fTiUHp+y+M9nOZERZ92vqVDNbrFBw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeikedguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkffuhffvffgtfggggfesthejre dttderjeenucfhrhhomhephghojhgtihgvtghhucfmohiilhhofihskhhiuceofihkseif ohhjtghivggthhhkohiilhhofihskhhirdgvuheqnecukfhppeduledvrdduiedvrddufe ekrddutddtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeifkhesfihojhgtihgvtghhkhho iihlohifshhkihdrvghunecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: from thor (unknown [192.162.138.100]) by mail.messagingengine.com (Postfix) with ESMTPA id 912AF80060 for ; Sun, 1 Sep 2019 12:40:54 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Mailman-Approved-At: Sun, 01 Sep 2019 13:02:58 -0400 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:166143 Archived-At: --text follows this line-- I'm using Emacs on the master branch so hopefully this is the right place to report bugs. My init.el fails on the call to load-path leaving the following backtrace (from the point load-theme is called): Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-directory-p(nil) custom-theme--load-path() load-theme(havoc-dark t) Digging deeper, this is caused by the fact that the variable `custom- theme-directory' has been reset to nil. This bug is reproducible without any code from my init.el file. To reproduce 1. launch Emacs with `emacs -Q` 2. M-x describe-variable 3. Enter `custom-theme-directory` 4. Help screen will show that the value of the variable is nil and that originally it was equal to "~/.emacs.d" The last point suggests that this variable got changed somewhere. My current workaround is to manually set this variable in my init.el file before the call to load-theme. Happy to help with further debugging! I could also try to provide a fix if others are too busy, but would require some steering as to where to look to implement the fix. Also, I would only be able to handle this after 11 September. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) of 2019-09-01 built on thor Repository revision: a7d47e64aaf438feaa8cbe4d40acb7bae0eab059 Repository branch: master Windowing system distributor 'Fedora Project', version 11.0.12005000 System Description: Fedora 30 (Thirty) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Type C-x 1 to delete the help window, C-M-v to scroll help. Making completion list... Configured using: 'configure --with-modules --prefix=/home/wojtek/.local' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg- config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra pp cl-print cus-dep autoload lisp-mnt cus-theme cus-edit cus-start cus-load wid- edit thingatpt help-fns radix-tree help-mode easymenu cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp- mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print- readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 71397 9620) (symbols 48 7838 1) (strings 32 22570 1951) (string-bytes 1 654162) (vectors 16 12567) (vector-slots 8 153644 9374) (floats 8 40 119) (intervals 56 246 0) (buffers 992 13))