Subject: bug#76615: 14.0.9; error with amsmath style hooks

From: Ikumi Keita <[email-masked]>
Date: Sun, 02 Mar 2025 03:01:40 +0900

Hi Paul,

>>>>> "Paul D. Nelson" <[email-masked]> writes:
> Making RefTeX work well with non-file buffers always seemed to me like a
> major undertaking.  The commands

> ;; reftex-add-index-macros
> ;; reftex-add-section-levels
> ;; reftex-add-label-environments
> ;; reftex-scanning-info-available-p
> ;; reftex-access-parse-file
> ;; reftex-access-scan-info
> ;; reftex-ref-style-list
> ;; reftex-ref-style-toggle
> ;; reftex-set-cite-format

> each call reftex-tie-multifile-symbols, which in turn calls
> reftex-TeX-master-file, which fails (with a hard landing) in a non-file
> buffer for which TeX-master has not been set to a tex file.

Is `reftex-TeX-master-file' the only source of RefTeX non-file buffer
difficulties? If so, I expect there is a possibility that we can amend
it so that RefTeX would not stumble in non-file buffer. For example,
`TeX-master-file' returns "<none>.tex" if it can't find a sensible
master file. What if we implement similar fallback for
`reftex-TeX-master-file'?

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW