Hello,

I've started using the kaohandt class [1] recently, and I have
TeX-parse-self and TeX-auto-save set to t.

When AucTeX tries to parse the files "kaobook.cls", "kaohandt.cls", and
"kao.sty", I get the following error (file names slightly edited):

> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>   replace-regexp-in-string("[ \11\15\n%]" "" nil)
>   LaTeX-xparse-macro-parse(mac)
>   LaTeX-xparse-auto-cleanup()
>   TeX-auto-parse()
>   TeX-update-style(t)
>   #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_118>()
>   run-hooks(find-file-hook)
>   after-find-file(nil t)
>   find-file-noselect-1(#<buffer kaobook.cls> 
> "~/texmf/tex/latex/kaobook/kaobook.cls" nil nil 
> "~/texmf/tex/latex/kaobook/kaobook.cls" (12617789 39))
>   #<subr find-file-noselect>("~/texmf/tex/latex/kaobook/kaobook.cls" nil nil 
> nil)
>   ad-Advice-find-file-noselect(#<subr find-file-noselect> 
> "~/texmf/tex/latex/kaobook/kaobook.cls" nil nil nil)
>   apply(ad-Advice-find-file-noselect #<subr find-file-noselect>
>   ("~/texmf/tex/latex/kaobook/kaobook.cls" nil nil > nil))
>   find-file-noselect("~/texmf/tex/latex/kaobook/kaobook.cls" nil nil nil)
>   #<subr find-file>("~/texmf/tex/latex/kaobook/kaobook.cls")
>   apply(#<subr find-file> "~/texmf/tex/latex/kaobook/kaobook.cls")
>   find-file("~/texmf/tex/latex/kaobook/kaobook.cls")
>   dired--find-file(find-file "~/texmf/tex/latex/kaobook/kaobook.cls")
>   
> dired--find-possibly-alternative-file("~/texmf/tex/latex/kaobook/kaobook.cls")
>   dired-find-file()
>   funcall(dired-find-file)
>   (progn (funcall dired-open-find-file-function))
>   (if (or arg (not (run-hook-with-args-until-success 'dired-open-functions))) 
> (progn (funcall dired-open-find-file-function)))
>   dired-open-file(nil)
>   funcall-interactively(dired-open-file nil)
>   command-execute(dired-open-file)

I feel a bit out of my depth in debugging this issue, but it is
preventing use of reftex features (reftex-reference in particular).

I am using AucTeX b18e98cbec, built from source.  I can provide more
information about my configuration as needed.

Thanks for all the work on AucTeX!

Sam

Footnotes:
[1]  https://github.com/fmarotta/kaobook/

-- 
Samuel W. Flint <m...@samuelwflint.com>
https://samuelwflint.com/
4096R/FA13D704
      (F50D 862B 4F65 5943 A8C2  EF0E 86C9 3E7A FA13 D704)
λs.(s s) λs.(s s)
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Reply via email to