Hi Marcin,
2015-09-04 21:16 GMT+02:00 Marcin Borkowski <[email protected]>:
> Hi all,
>
> when I press C-c C-e in an empty LaTeX-mode buffer, I have to wait
> quite a long time for Emacs to search for available classes. Ditto for
> \usepackage.
>
> Is there an easy way of putting the relevant code in my init.el, so that
> after Emacs finishes loading, LaTeX-global-class-files and
> TeX-global-input-files are already initialized?
>
> When I run e.g.
>
> (setq TeX-global-input-files
> (mapcar 'list (TeX-search-files-by-type 'texinputs 'global t t)))
>
> in mode other than LaTeX-mode, it won't work. (It seems to find just
> a few filenames, some belonging to the current directory, and `preview',
> which might be part of AUCTeX.)
In a new Emacs session,
--8<---------------cut here---------------start------------->8---
(require 'tex)
(length
(setq TeX-global-input-files
(mapcar 'list (TeX-search-files-by-type 'texinputs 'global t t))))
--8<---------------cut here---------------end--------------->8---
returns 7452 for me, after opening a LaTeX files its length is 7500,
not much more. I didn't look for the differences, `cl-set-difference'
could help for this.
> Also, both LaTeX-global-class-files and TeX-global-input-files seem to
> contain each file twice on my system, even though the said file exists
> only in one place in the filesystem. What might be the reason for that?
I didn't check how those variables are exactly defined, but maybe it's
because `LaTeX-global-class-files' has only class files and
`TeX-global-input-files' all files that can in some way included in a
TeX file?
Bye,
Mosè
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex