auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] [problems with TeX-arg-ref]


From: Uwe Brauer
Subject: Re: [AUCTeX-devel] [problems with TeX-arg-ref]
Date: Tue, 15 Nov 2016 19:41:21 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

    > Hi Uwe,
    > 2016-11-14 18:43 GMT+01:00 Uwe Brauer <address@hidden>:

    > This is funny: you praise how RefTeX is great, you don't like RefTeX's
    > behavior and blame AUCTeX for it ;-)

Aehm no, I did not. See below.


    > You're comparing apples with oranges: `reftex-label' defines a new
    > label, `TeX-arg-ref' prompts for an already existing label.  What do
    > you want to accomplish?  Determine what action you want to take
    > (define a new label?  reference an existing one?), use the appropriate
    > AUCTeX function, and you're done.  If you use RefTeX, it'll be
    > actually used.

The first version of my code was
'("titledquestion" "Title" ["Points"]  reftex-label)

Arash told me to change it because it was too reftex specific. So I
changed it to
    '("titledquestion" "Title" ["Points"] TeX-arg-ref)
which most likely is fine if reftex-plug-into-AUCTeX is nil.

But the problem is, with setq reftex-plug-into-AUCTeX t, TeX-arg-ref
behaves differently from reftex-label, because it now asks you
interactively to insert a label. That is a behaviour which I don't want,
I want reftex to do this automatically.

So it boils down to this what is the corresponding AUCTeX function which
behaves *exactly* as reftex-label?

Uwe 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]