[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TeX-style-path

From: Ikumi Keita
Subject: Re: TeX-style-path
Date: Tue, 15 Dec 2020 23:10:44 +0900

Hi Greg,

>>>>> Greg Bognar via General discussion about AUCTeX <> writes:
> Yes, Tassilo's suggestion results in the right value for `TeX-style-path', but
> weirdly, C-h v now says:

> Value
> ("~/.cache/emacs/autoparse" "/home/greg/.emacs.d/elpa/auctex-12.3.1/style" 
> "~/.cache/emacs/auctex")

> Original Value
> ("~/.cache/emacs/autoparse" "/home/greg/.emacs.d/elpa/auctex-12.3.1/style" 
> "~/.cache/emacs/auctex")

> So Emacs thinks my modifications were both the original and the customized
> values.  I'd love to understand why that is.

That's because the default value of `TeX-style-path' is constructed
dynamically when it is defined. This is its defcustom:
(defcustom TeX-style-path
  (let ((path))
    ;; Put directories in an order where the more local files can
    ;; override the more global ones.
    (mapc (lambda (file)
            (when (and file (not (member file path)))
              (setq path (cons file path))))
          (append (list TeX-auto-global TeX-style-global)
                  TeX-auto-private TeX-style-private
                  (list TeX-auto-local TeX-style-local)))
    (nreverse path))

The constructed value simply obeys the values of `TeX-auto-global' etc.
at that time.

Ikumi Keita

reply via email to

[Prev in Thread] Current Thread [Next in Thread]