2014-11-25 15:52 GMT+01:00 Uwe Brauer <[email protected]>: > > > Hi Uwe, > > 2014-11-25 15:11 GMT+01:00 Uwe Brauer <[email protected]>: > > > This is not a bug: `LaTeX-label' now has two arguments, the label to > > be inserted and the type, either environment or section, so you have > > to replace your call to `LaTeX-label' with > > (LaTeX-label environment 'environment) > > > This seems not to work. Here is my new setting: > > (defun LaTeX-rem-insert (environment) ;Version:1.20 > (if (y-or-n-p > (format "Do you want a title ")) > (let ((title (read-input " Title: "))) > (LaTeX-insert-environment "rem" (concat "[" title "]")) > (and (LaTeX-label environment 'environment) > (newline-and-indent))) > (LaTeX-insert-environment "rem") > (and (LaTeX-label environment 'environment) > (newline-and-indent)))) > > However the following gets inserted: > > > > \begin{rem}[Blabla] > > \end{rem} > > > That is NO label.
See the documentation for `LaTeX-label-alist' (https://www.gnu.org/software/auctex/manual/auctex.html#index-LaTeX_002dlabel_002dalist) If you want to automatically insert a label for a environment but with an empty prefix, use the empty string '""' as the cdr of the corresponding entry. so you should add an appropriate entry to that variable, probably '("rem" . "") or so. Bye, Mosè _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
