From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bhoel@web.de (Berthold Höllmann) Newsgroups: gmane.emacs.help Subject: Re: Using comment-region in function Date: Thu, 13 May 2004 21:01:14 +0200 Organization: Berthold Höllmann 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: quoted-printable X-Trace: sea.gmane.org 1084475810 25105 80.91.224.253 (13 May 2004 19:16:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 May 2004 19:16:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 13 21:16:46 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 1BOLhG-0008Uf-00 for ; Thu, 13 May 2004 21:16:46 +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 1BOLgq-0001NG-DS for geh-help-gnu-emacs@m.gmane.org; Thu, 13 May 2004 15:16:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-X-Complaints-To: http://news.individual.net/abuse.html Original-X-Trace: news.uni-berlin.de p13B6djGs9VWNLKiC1nNCwLISTKQzNKk4UqOweyq/ze8VRS8LV X-Orig-Path: ID-156053.user.uni-berlin.de!news User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:DIiSypsPrtR+tO1RipvbJBpDZ8s= X-Leafnode-Warning: administrator allowed illegal use of 8-bit data in header. Original-Xref: shelby.stanford.edu gnu.emacs.help:123175 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:18468 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18468 Jesper Harder writes: > hoel@gl-group.com (Berthold H=F6llmann) writes: > >> Jesper Harder 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=20 (point) (progn (blurb-head) (point)))) does work for this simple example. Still fighting with elisp. Thanks Berthold --=20 bhoel@web.de / http://starship.python.net/crew/bhoel/