Comments

Karl Pflästerer sigurd at 12move.de
Wed May 8 15:32:47 EDT 2002


On Wed, 8 May 2002, Thomas Heller <- theller at python.net wrote:
>> By the way, in emacs with python mode, you can select a region and
>> comment/uncomment it. Commenting a block simply prepends ## to each
>> line in the block. Nifty!

> I know about comment-region, but how do I uncomment?

(describe-function 'comment-region) <- place cursor here and hit C-x C-e

,----[ C-h f comment-region RET ]
| (comment-region START END &optional ARG)
| 
| Documentation:
| Comment or uncomment each line in the region.
| With just C-u prefix arg, uncomment each line in region.
| Numeric prefix arg ARG means use ARG comment characters.
| If ARG is negative, delete that many comment characters instead.
| Comments are terminated on each line, even for syntax in which newline does
| not end the comment.  Blank lines do not get comments.
`----

bye
   KP

-- 
Der wahre Weltuntergang ist die Vernichtung des Geistes, der andere hängt von
dem gleichgiltigen Versuch ab, ob nach der Vernichtung des Geistes noch eine
Welt bestehen kann.
                   Karl Kraus 'Untergang der Welt durch schwarze Magie'



More information about the Python-list mailing list