Subject: Re: bug#19178: [no label inserted]

From: Mosè Giordano <[email-masked]>
Date: Tue, 25 Nov 2014 23:30:07 +0100

2014-11-25 19:06 GMT+01:00 Uwe Brauer <[email-masked]>:
>
>    > 2014-11-25 15:52 GMT+01:00 Uwe Brauer <[email-masked]>:
>
>    > 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.
>
> Well
>
> (defun LaTeX-rem-insert-old (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 '("rem" . ""))
>                          (newline-and-indent)))
>     (LaTeX-insert-environment "rem")
>     (and (LaTeX-label environment '("rem" . ""))
>        (newline-and-indent))))
>
>
>  does not do anything as before, that is no label inserted.

I said to add '("rem" . "") to `LaTeX-label-alist' variable, not to
pass it as second argument of `LaTeX-label'.

Bye,
Mosè