auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] out comment every line


From: Lars Madsen
Subject: Re: [AUCTeX] out comment every line
Date: Tue, 3 Mar 2015 10:47:37 +0000

I knew there was a variable somewhere. Works perfectly, thanks

/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/address@hidden / More information: 
http://au.dk/en/address@hidden


________________________________________
From: address@hidden address@hidden on behalf of Tassilo Horn address@hidden
Sent: 03 March 2015 11:41
To: address@hidden
Subject: Re: [AUCTeX] out comment every line

Lars Madsen <address@hidden> writes:

Hi Lars,

> If you run TeX-comment-region it will out comment the lines that are
> not blank. How can I tell it to comment everyline even if it is blank?

That's not special to AUCTeX, i.e., `TeX-comment-region' just defines
the comment characters and then calls `comment-region' which does the
actual commenting.  For the latter, the default is to comment only
non-blank lines but it can be changed using:

,----[ C-h v comment-empty-lines RET ]
| comment-empty-lines is a variable defined in `newcomment.el'.
| Its value is nil
|
| Documentation:
| If nil, `comment-region' does not comment out empty lines.
| If t, it always comments out empty lines.
| If `eol' it only comments out empty lines if comments are
| terminated by the end of line (i.e. `comment-end' is empty).
|
| You can customize this variable.
`----

Bye,
Tassilo


_______________________________________________
auctex mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/auctex



reply via email to

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