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: Berthold Höllmann
Subject: Re: Using comment-region in function
Date: Thu, 13 May 2004 21:01:14 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Jesper Harder <harder@myrealbox.com> writes:

> hoel@gl-group.com (Berthold Höllmann) writes:
>
>> Jesper Harder <harder@myrealbox.com> writes:
>>
>>> Use `comment-region'?
>>>
...
>>
>> This does not work for skeletons:
>
> I don't know anything about skeletons, but ...
>
...
>
> is obviously wrong.  You can't leave out the `progn' from my example.

Sorry,

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

does work for this simple example. Still fighting with elisp.

Thanks
Berthold
-- 
bhoel@web.de / http://starship.python.net/crew/bhoel/


reply via email to

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