From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Gary ." Newsgroups: gmane.emacs.help Subject: auto-insert-mode template format Date: Wed, 19 May 2010 10:25:28 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1274257619 1171 80.91.229.12 (19 May 2010 08:26:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 May 2010 08:26:59 +0000 (UTC) To: emacs list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 19 10:26:58 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OEebr-0005zd-68 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 May 2010 10:26:57 +0200 Original-Received: from localhost ([127.0.0.1]:49860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEebY-0003mL-7a for geh-help-gnu-emacs@m.gmane.org; Wed, 19 May 2010 04:26:16 -0400 Original-Received: from [140.186.70.92] (port=58521 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEeau-0003lJ-Db for help-gnu-emacs@gnu.org; Wed, 19 May 2010 04:25:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEeap-00024E-1Y for help-gnu-emacs@gnu.org; Wed, 19 May 2010 04:25:33 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:43435) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEeao-00023q-MW for help-gnu-emacs@gnu.org; Wed, 19 May 2010 04:25:30 -0400 Original-Received: by wyb33 with SMTP id 33so1267375wyb.0 for ; Wed, 19 May 2010 01:25:28 -0700 (PDT) Original-Received: by 10.216.158.12 with SMTP id p12mr4818350wek.152.1274257528146; Wed, 19 May 2010 01:25:28 -0700 (PDT) Original-Received: by 10.216.167.147 with HTTP; Wed, 19 May 2010 01:25:28 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73667 Archived-At: I know I can use skeleton files, and that works okay, I just find the syntax less easy to read than a simpler one would be. I found by way of the emacs wiki a document which I thought explained the "simple" format of auto-insert files (http://web.archive.org/web/20040604170543/http://www.cogsci.ed.ac.uk/~tkld/auto-insert_toc.html) but I'm damned if I can get the %-escapes described there to expand. For example the config: (define-auto-insert "\\.foo$" "insert.foo_") where the file "insert.foo_" looks like: // // Filename : %f // doesn't replace %f with the file name as I expected. (note: it also doesn't work surrounding the %f with `' as indicated on that webpage, I tried it just to make sure) Any ideas what I am doing wrong?