help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How add "#" to blank lines when using py-comment-region???


From: lawrence mitchell
Subject: Re: How add "#" to blank lines when using py-comment-region???
Date: Tue, 12 Aug 2003 21:30:01 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50

Christian Seberino wrote:

> py-comment-region lets me
> add "#" at beginning of non-blank lines that I have
> highlighted with mouse.

> It does not add "#" for the blank lines.

> How can I modify behavior of py-comment-region to do this?

py-comment-region is just a minor wrapper around comment-region,
so the variable you want to look at is comment-empty-lines.

If you only want to comment blank lines in python mode, you'll
have to make comment-empty-lines buffer local and set it in a
hook.

-- 
lawrence mitchell <address@hidden>


reply via email to

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