GNU bug report logs - #24920
24.5; Error on customize-update-all

Previous Next

Package: emacs;

Reported by: Frank Roland <frokrecik <at> gmail.com>

Date: Thu, 10 Nov 2016 17:31:01 UTC

Severity: normal

Found in version 24.5

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: npostavs <at> users.sourceforge.net
Cc: Frank Roland <frokrecik <at> gmail.com>, 24920 <at> debbugs.gnu.org,
 Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#24920: 24.5; Error on customize-update-all
Date: Fri, 03 Sep 2021 11:03:51 +0200
npostavs <at> users.sourceforge.net writes:

> Running "M-x customize-option Tex-auto-global" works fine. However, it
> throws an error if I hit "Save for future sessions":
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   file-name-directory(nil)
>   (expand-file-name "../var/auctex" (file-name-directory load-file-name))
>   eval((expand-file-name "../var/auctex" (file-name-directory load-file-name)))
>   custom-push-theme(theme-value TeX-auto-global user set
> "d:/home/.emacs.d/var/auctex")

[...]

> AFAICT, the problem is that auctex uses a standard-value for
> Tex-auto-global that includes (file-name-directory load-file-name) as
> part of the expression.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Hm...  this is the definition of that variable:

(defcustom TeX-auto-global
    (if (file-writable-p "/usr/local/var/auctex") "/usr/local/var/auctex" "~/.emacs.d/auctex")
  "Directory containing automatically generated information.

For storing automatic extracted information about the TeX macros
shared by all users of a site."
  :group 'TeX-file
  :type 'directory)

Doesn't seem to be any mention of load-file-name.  There's stuff like

(defvar TeX-lisp-directory
  (file-name-directory load-file-name)

but that shouldn't affect this user option, surely?  Hm...  anybody know
what's going on?  (Or has this been fixed in the years since it was
reported?  I haven't tried to reproduce the problem.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 73 days ago.

Previous Next


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