[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19178: [no label inserted]
From: |
Uwe Brauer |
Subject: |
bug#19178: [no label inserted] |
Date: |
Tue, 25 Nov 2014 19:06:49 +0100 |
User-agent: |
Gnus/5.13001 (Ma Gnus v0.10) XEmacs/21.5-b33 (linux) |
> 2014-11-25 15:52 GMT+01:00 Uwe Brauer <address@hidden>:
> 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.
However
(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 'section)
(newline-and-indent)))
(LaTeX-insert-environment "rem")
(and (LaTeX-label environment 'section)
(newline-and-indent))))
Behaves as in earlier versions of auctex
> Bye,
> Mosè
smime.p7s
Description: S/MIME cryptographic signature
- [Bug-AUCTeX] bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels, Uwe Brauer, 2014/11/25
- [Bug-AUCTeX] bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels, Mosè Giordano, 2014/11/25
- Message not available
- [Bug-AUCTeX] bug#19178: [no label inserted] (was: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels), Uwe Brauer, 2014/11/25
- bug#19178: [no label inserted] (was: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels), Mosè Giordano, 2014/11/25
- bug#19178: closed (Re: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels), Mosè Giordano, 2014/11/25
- bug#19178: closed (Re: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels), Uwe Brauer, 2014/11/25
- bug#19178: [no label inserted],
Uwe Brauer <=
- bug#19178: closed (Re: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels), Uwe Brauer, 2014/11/26
- bug#19178: closed (Re: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels), Uwe Brauer, 2014/11/27
- bug#19178: closed (Re: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels), Uwe Brauer, 2014/11/27
- bug#19178: closed (Re: bug#19178: 11.88; 11.88 Xemacs 11.88 problem with env and labels), Uwe Brauer, 2014/11/27