GNU bug report logs - #51468
reftex-ref-style-alist in amsmath.el

Previous Next

Package: auctex;

Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>

Date: Thu, 28 Oct 2021 20:31:02 UTC

Severity: normal

Tags: notabug

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gustavo Barros <gusbrs.2016 <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: reftex-ref-style-alist in amsmath.el
Date: Thu, 28 Oct 2021 17:17:27 -0300
Hi All,

`reftex-vars.el' defines the user option `reftex-ref-style-alist' and 
includes the "AMSmath" style among the default ones, the same as with 
other package specific reference commands.  The activation of each of 
these entries is controlled by `LaTeX-reftex-ref-style-auto-activate'. 
And users can set `reftex-ref-style-alist' so that they choose which 
styles may potentially get activated, according to loaded packages in 
the style files.

However, `amsmath.el' goes a little further and adds (again) the 
"AMSmath" ref style to `reftex-ref-style-alist'.  Hence, if an user had 
removed it from the variable, the style file overrides that 
customization, and the only way to disable this ref style, while keeping 
`LaTeX-reftex-ref-style-auto-activate' to `t', is to add an empty 
"AMSmath" ref style instead.

But doesn't this re-adding of the ref style in `amsmath.el' defeat the 
purpose of the interplay between `reftex-ref-style-alist' and 
`LaTeX-reftex-ref-style-auto-activate'?  As far as I can tell, 
`amsmath.el' is the only style file from the ones included by default in 
`reftex-ref-style-alist' which does this.  I'd expect it not to do it.

Best regards,
Gustavo.




This bug report was last modified 3 years and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.