Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-05-25 Thread Mosè Giordano
Hi Tassilo, 2014-05-25 19:42 GMT+02:00 Tassilo Horn : > Mosè Giordano writes: > >>> You probably have AMSTeX in `reftex-default-label-alist-entries' and >>> I don't. >> >> In last files I used for testing I had a `\usepackage{amsmath}' line >> and this causes `reftex-default-label-alist-entries'

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-05-25 Thread Tassilo Horn
Mosè Giordano writes: >> You probably have AMSTeX in `reftex-default-label-alist-entries' and >> I don't. > > In last files I used for testing I had a `\usepackage{amsmath}' line > and this causes `reftex-default-label-alist-entries' to have a > `amsmath' entry, and that's the "problem". I've co

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-05-23 Thread Mosè Giordano
2014-05-22 18:17 GMT+02:00 Tassilo Horn : > You probably have AMSTeX in `reftex-default-label-alist-entries' and I > don't. In last files I used for testing I had a `\usepackage{amsmath}' line and this causes `reftex-default-label-alist-entries' to have a `amsmath' entry, and that's the "problem".

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-05-22 Thread Tassilo Horn
Mosè Giordano writes: > But I can't get why you don't have that entry in > `reftex-typekey-to-format-alist'. Up to my understanding this alist > is built in `reftex-compile-variables' and in my system, with the > default RefTeX settings, the first element processed in the outer > `while' loop >

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-05-21 Thread Mosè Giordano
Hi Tassilo, 2014-05-21 17:09 GMT+02:00 Tassilo Horn : > I don't have the ("e" . "~\\eqref{%s}") entry. The problem with that is > that it's not matched by the regexp in `reftex-format-special'. That's the culprit! Indeed, without that entry in the alist the `form' variable in `reftex-reference'

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-05-21 Thread Tassilo Horn
Mosè Giordano writes: Hi Mosè, >> I can't reproduce that with the reftex version from the 24.4 pretests >> or emacs trunk (where it inserts a (\pageref{eq:1}), the parens being >> caused by `reftex-typekey-to-format-alist'), so it's probably already >> fixed. > > I've just tried out the last rev

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-05-20 Thread Mosè Giordano
2014-05-19 8:59 GMT+02:00 Tassilo Horn : > I can't reproduce that with the reftex version from the 24.4 pretests or > emacs trunk (where it inserts a (\pageref{eq:1}), the parens being > caused by `reftex-typekey-to-format-alist'), so it's probably already > fixed. I've just tried out the last rev

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-05-20 Thread Mosè Giordano
Hi Tassilo, 2014-05-19 8:59 GMT+02:00 Tassilo Horn : > I can't reproduce that with the reftex version from the 24.4 pretests or > emacs trunk (where it inserts a (\pageref{eq:1}), the parens being > caused by `reftex-typekey-to-format-alist'), so it's probably already > fixed. Uh, good to know, I

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-05-19 Thread Tassilo Horn
Mosè Giordano writes: Hi Mosè, > the `reftex-reference' function ignores the selected reference format > (if `reftex-ref-macro-prompt' is non-nil) when one choses an equation > key. > > For example, consider the following code > \documentclass{article} > \begin{document} > \begin{equation} > \

Re: [AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-01-21 Thread Mosè Giordano
2014/1/10 Mosè Giordano : > Hi all, > > the `reftex-reference' function ignores the selected reference format > (if `reftex-ref-macro-prompt' is non-nil) when one choses an equation > key. > > For example, consider the following code > --8<---cut here---start->8-

[AUCTeX-devel] [RefTeX] reftex-reference ignores reference format selection

2014-01-10 Thread Mosè Giordano
Hi all, the `reftex-reference' function ignores the selected reference format (if `reftex-ref-macro-prompt' is non-nil) when one choses an equation key. For example, consider the following code --8<---cut here---start->8--- \documentclass{article} \begin{docume