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 17:44:21 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

address@hidden (Berthold Höllmann) writes:

> Jesper Harder <address@hidden> writes:
>
>> Use `comment-region'?
>>
>> (comment-region 
>>  (point)
>>  (progn
>>    (insert "This is a comment")
>>    (point)))
>
> This does not work for skeletons:

I don't know anything about skeletons, but ...

> (define-skeleton head
>   "Insert a standard header for C files"
>   ""
>   (comment-region 
>    (point)
>    (blurb-head)
>    (point)))

is obviously wrong.  You can't leave out the `progn' from my example.

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


reply via email to

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