I have recently been trying auctex 11.88 on emacs 24.4(win7+mac). it's great so far!
I used to have the following in my .emacs emacs file when I was using auctex11.87 (I bumped into it on stackexchange somewhere)
(setq reftex-label-alist
'(
("theorem" ?h "thm:" "~\\ref{%s}" t ("theorem" "th."))
("lemma" ?l "lem:" "~\\ref{%s}" t ("lemma" "lem." ))
("exercise" ?x "ex:" "~\\ref{%s}" t ("exercise" "ex." ))
("question" ?q "ques:" "~\\ref{%s}" t ("question" "q." ))
))
(add-hook 'LaTeX-mode-hook
(lambda ()
(LaTeX-add-environments
'("lemma" LaTeX-env-label)
'("exercise" LaTeX-env-label)
'("theorem" LaTeX-env-label)
'("question" LaTeX-env-label)
)))
(setq reftex-insert-label-flags '("s" "ft"))
It automatically generates a label when I insert a newly defined environment, say, when I run C-c C-e exercise RET
, I get
\begin{exercise}
\label{ex:1}
(cursor here)
\end{exercise}
now in auctex11.88 I can only get
\begin{exercise}
(cursor here)
\end{exercise}
I need to further run C-c (
to add \label{ex:1}
there.
I'm not sure if the lisp code I was using gets out dated. I tried executing the short piece (LaTeX-env-label "exercise")
. In auctex11.87 I get the desired result, but not in auctex11.88.
Please advise! Thanks very much!
BTW, is it really a bug which is early mentioned in the mail or should we adjust something else in auctex11.88? Some new feature + backward compatibility issue is mentioned in mailing list I'm not an expert on this, could anyone elaborate? thanks a lot!