Hi all,

Arash Esbati <[email protected]> writes:

> Tassilo Horn <[email protected]> writes:
>
>> Arash Esbati <[email protected]> writes:
>>
>>> I suggest to change the "Default" entry like this:
>>>
>>>          (("\\ref" ?\C-m) ("\\Ref" ?R) ("\\pageref" ?p) ("\\footref" ?t)))
>>>
>>> i.e., add \footref and bind it to t key.  Any comment about tke key
>>> binding?
>>
>> Given that the more obvious ?f is already taken, both ?o and ?t are fine
>> with me.
>
> Thanks for your response.  I think I like ?o even more.  I will update
> AUCTeX when I have time and prepare a patch for RefTeX as well.

I revisited this question again and I propose the following change:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 0d6bfb5d86..a8ca780b31 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -1059,7 +1059,7 @@ reftex-multiref-punctuation

 (defcustom reftex-ref-style-alist
   '(("Default" t
-     (("\\ref" ?\C-m) ("\\Ref" ?R) ("\\pageref" ?p)))
+     (("\\ref" ?\C-m) ("\\Ref" ?R) ("\\footref" ?n) ("\\pageref" ?p)))
     ("Varioref" "varioref"
      (("\\vref" ?v) ("\\Vref" ?V) ("\\vpageref" ?g)))
     ("Fancyref" "fancyref"
@@ -1079,7 +1079,7 @@ reftex-ref-style-alist
 `reftex-ref-macro-prompt'.)  The keys, represented as characters,
 have to be unique."
   :group 'reftex-referencing-labels
-  :version "27.1"
+  :version "28.1"
   :type '(alist :key-type (string :tag "Style name")
                :value-type (group (choice :tag "Package"
                                           (const :tag "Any package" t)
--8<---------------cut here---------------end--------------->8---

I'm voting for the key binding n since `reftex-label-alist-builtin' has
this entry:

    ("\\footnote[]{}" ?n "fn:" "~\\ref{%s}" 2
     (regexp "footnotes?" "Fussnoten?"))

When hitting C-c ) the user then needs to press n twice to get the macro
and the labels completion.  I think this is easier than hitting t or o
and then n.

Any comments?  I will prepare a patch for Emacs master then.

Best, Arash

Reply via email to