auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] out comment every line


From: Nicolas Richard
Subject: Re: [AUCTeX] out comment every line
Date: Tue, 03 Mar 2015 13:46:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Lars Madsen <address@hidden> writes:
> 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?

Since Tassilo answered this part already, let's look at the story :

> I'm using this in a macro that cleans up some 'strange' syntax into a
> more normal env based stuff. But I'd like to keep the original. So the
> macro detects the material, copies it, outcomments the region

At this point you know where the region ends, don't you ?

>  and has
> to insert the converted stuff after the commented area.
>
> but after TeX-comment-region, the cursor may still be inside the
> commented area, so I need to get out.

So you could use it here.

I know I missed something because this was too obvious, but what did I
miss ?

-- 
Nicolas Richard



reply via email to

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