GNU bug report logs -
#76615
14.0.9; error with amsmath style hooks
Previous Next
Reported by: "Paul D. Nelson" <ultrono <at> gmail.com>
Date: Thu, 27 Feb 2025 18:31:02 UTC
Severity: normal
Found in version 14.0.9
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Paul,
"Paul D. Nelson" <ultrono <at> gmail.com> writes:
> Evaluating the following after Emacs -Q
>
> (progn
> (package-initialize)
> (package-activate 'auctex)
> (add-hook 'LaTeX-mode-hook #'turn-on-reftex)
> (with-temp-buffer
> (LaTeX-mode)
> (TeX-run-style-hooks "amsmath")))
>
> gives the backtrace:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> expand-file-name(nil)
> reftex-TeX-master-file()
> reftex-tie-multifile-symbols()
> reftex-add-to-label-alist((AMSTeX))
I think this is because of this part of amsmath.el[1]:
;; RefTeX support: Tell RefTeX about amsmath environments.
(when (fboundp 'reftex-add-to-label-alist)
(reftex-add-to-label-alist '(AMSTeX)))
> The issue arose when using log-edit-generate-changelog-from-diff for a
> commit involving tex files. I distilled it down to the above example.
I'd say the form above was in amsmath.el since forever :-)
HTH. Best, Arash
Footnotes:
[1] https://git.savannah.gnu.org/cgit/auctex.git/tree/style/amsmath.el#n165
This bug report was last modified 46 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.