GNU bug report logs - #37258
27.0.50; custom-theme-directory variable is set to nil before init.el loads causing load-theme to fail

Previous Next

Package: emacs;

Reported by: Wojciech Kozlowski <wk <at> wojciechkozlowski.eu>

Date: Sun, 1 Sep 2019 17:04:02 UTC

Severity: normal

Merged with 37256

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37258 in the body.
You can then email your comments to 37258 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37258; Package emacs. (Sun, 01 Sep 2019 17:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wojciech Kozlowski <wk <at> wojciechkozlowski.eu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 01 Sep 2019 17:04:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Wojciech Kozlowski <wk <at> wojciechkozlowski.eu>
To: bug-gnu-emacs <at> gnu.org
Subject: 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
--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))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37258; Package emacs. (Sun, 01 Sep 2019 17:10:01 GMT) Full text and rfc822 format available.

Message #8 received at 37258 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Wojciech Kozlowski <wk <at> wojciechkozlowski.eu>
Cc: 37258 <at> debbugs.gnu.org
Subject: Re: 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 20:09:10 +0300
> From: Wojciech Kozlowski <wk <at> wojciechkozlowski.eu>
> Date: Sun, 01 Sep 2019 18:40:53 +0200
> 
> 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.

Please try again with the latest master, I think Paul has just fixed
this.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37258; Package emacs. (Sun, 01 Sep 2019 17:30:02 GMT) Full text and rfc822 format available.

Message #11 received at 37258 <at> debbugs.gnu.org (full text, mbox):

From: Wojciech Kozlowski <wk <at> wojciechkozlowski.eu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 37258 <at> debbugs.gnu.org
Subject: Re: 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 19:24:06 +0200
Yep, it works now. Thanks!

Please let me know if I need to do anything special to close the bug.

On Sun, 2019-09-01 at 20:09 +0300, Eli Zaretskii wrote:
> > From: Wojciech Kozlowski <wk <at> wojciechkozlowski.eu>
> > Date: Sun, 01 Sep 2019 18:40:53 +0200
> > 
> > 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.
> 
> Please try again with the latest master, I think Paul has just fixed
> this.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37258; Package emacs. (Sun, 01 Sep 2019 17:41:01 GMT) Full text and rfc822 format available.

Message #14 received at 37258 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Wojciech Kozlowski <wk <at> wojciechkozlowski.eu>
Cc: 37258 <at> debbugs.gnu.org
Subject: Re: 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 20:40:28 +0300
forcemerge 37258 37256
close 37258
thanks

> From: Wojciech Kozlowski <wk <at> wojciechkozlowski.eu>
> Cc: 37258 <at> debbugs.gnu.org
> Date: Sun, 01 Sep 2019 19:24:06 +0200
> 
> Yep, it works now. Thanks!
> 
> Please let me know if I need to do anything special to close the bug.

I hope I just did.




Forcibly Merged 37256 37258. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 01 Sep 2019 17:41:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 37258 <at> debbugs.gnu.org and Wojciech Kozlowski <wk <at> wojciechkozlowski.eu> Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 01 Sep 2019 17:41:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 Sep 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.