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

From: Stefan Monnier <[email-masked]>
Date: Wed, 02 Apr 2025 10:37:32 -0400

> The result of reftex-TeX-master-file is passed to file-truename, so it
> can be "<none>.tex" but not nil.  Modifying your patch as follows seems
> to do the trick.
>
> Thanks, best,
> Paul
>
>
> @@ -389,7 +396,9 @@ reftex-TeX-master-file
>       (t
>        ;; Use buffer file name.
>        (setq master (buffer-file-name))))
> -    (expand-file-name master)))
> +    (if reftex--suppress-nonfile-error
> +        "<none>.tex"
> +      (expand-file-name master))))

I think TRT would be to return the buffer when in a non-file buffer and
then to adjust callers accordingly.

        Stefan