Hi Arash,

Thanks for the reply. I'll look into the obsolete function warning in the
next few days, if no-one beats me to it.

David.

On Tue, 2 Jun 2026, 17:35 Arash Esbati, <[email protected]> wrote:

> Hi David,
>
> David Fussner <[email protected]> writes:
>
> > With the release of v31 nearing, I thought it might be a good time to
> > discuss activating the new xref backend in AUCTeX buffers. NEWS claims
> > that it is activated automatically in TeX buffers, but this is currently
> > true only for the in-tree tex-mode, at least as far as I can make
> > out. It happens in 'tex-common-initialization', but I guess this isn't
> > evaluated at any point by the AUCTeX modes.
> >
> > Should we put something like:
> >
> > (when (>= emacs-major-version 31)
> >   (add-hook 'xref-backend-functions #'tex--xref-backend nil t))
> >
> > into 'TeX-mode' in tex.el? Or should I revise the text in NEWS to offer
> > AUCTeX users a code snippet for their init files? Or some third thing
> > that you would prefer?
>
> Thanks for raising this.  You're right, AUCTeX doesn't care about
> `tex-common-initialization', so adding the form above to:
>
>   (define-derived-mode TeX-mode text-mode "TeX" ...)
>
> is TRT.
>
> @Keita: WDYT?
>
> While we're at it: When compiling AUCTeX, I get:
>
>   In bib-find-next:
>   bib-cite.el:943:8: Warning: ‘find-tag’ is an obsolete function (as of
>   25.1); use ‘xref-find-definitions’ instead.
>
> Is there a chance that we can fix this as well?  Can `find-tag' be
> replaced with `xref-find-definitions' once the addition above is done?
> I admit I'm not that much into xref-business, so I'd appreciate your
> help here.
>
> Best, Arash
>

Reply via email to