bug-auctex
[Top][All Lists]
Advanced

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

bug#19178: closed (Re: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with


From: Mosè Giordano
Subject: bug#19178: closed (Re: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels)
Date: Thu, 27 Nov 2014 17:40:02 +0100

Hi Uwe and all,

2014-11-27 11:39 GMT+01:00 Uwe Brauer <address@hidden>:
>>> "Mos" == Mos  <Mos> writes:
>
>    >> -            ""))))
>    >> +            ""))
>    >> +         ((nullp type)
>    >> +          "")))
>    >                  ^^^^
>
>    > Sorry, I meant nil instead of ""
>
> Hi
>
> I modified (hopefully correctly) your patch, applied it
> then used my old definitions such as
> (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)
>                            (newline-and-indent)))
>           (LaTeX-insert-environment "rem")
>           (and (LaTeX-label environment)
>                    (newline-and-indent))))
>
> and got an error. I attach the modified patch, and the error

I hope it's clear I wrote those messages in a hurry, just to give the idea.

I changed my mind. I propose the attached patch which restores (full)
compatibility with the old version of LaTeX-label: the optioanl `type'
argument select the look up table to be used for the default prefix of
the label, if it's nil (or absent) you are always prompted for a
label.  AUCTeX code always uses the appropriate value for the type
argument, but users will also be able to force the insertion of the
label (or continue to use the old syntax of the function).

Bye,
Mosè

Attachment: latex-label.patch
Description: Text Data


reply via email to

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