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

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

Re: Using comment-region in function


From: Jesper Harder
Subject: Re: Using comment-region in function
Date: Thu, 13 May 2004 14:09:05 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

hoel@gl-group.com (Berthold Höllmann) writes:

> The text should be the same and inserted as comment regardles the
> programming language. I need a hint to achiev this.

Use `comment-region'?

(comment-region 
 (point)
 (progn
   (insert "This is a comment")
   (point)))

-- 
Jesper Harder                                <http://purl.org/harder/>


reply via email to

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