From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: Using comment-region in function Date: Thu, 13 May 2004 17:44:21 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1084464365 27627 80.91.224.253 (13 May 2004 16:06:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 May 2004 16:06:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 13 18:05:51 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOIiV-00028m-00 for ; Thu, 13 May 2004 18:05:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOIgR-0003ed-8i for geh-help-gnu-emacs@m.gmane.org; Thu, 13 May 2004 12:03:43 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18463 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18463 hoel@gl-group.com (Berthold Höllmann) writes: > Jesper Harder 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