From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tennis_smith@yahoo.com (Tennis Smith) Newsgroups: gmane.emacs.help Subject: Re: Skeleton & Abbrev Date: 29 Dec 2002 18:33:21 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7f477f72.0212291833.4b8b1034@posting.google.com> References: <7f477f72.0212261731.364e59fd@posting.google.com> <847kdvkyfc.fsf@lucy.cs.uni-dortmund.de> <7f477f72.0212290806.2224eef5@posting.google.com> <84el80pxx6.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1041215743 26280 80.91.224.249 (30 Dec 2002 02:35:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Dec 2002 02:35:43 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18SpmH-0006ph-00 for ; Mon, 30 Dec 2002 03:35:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Spm0-00047M-06 for gnu-help-gnu-emacs@m.gmane.org; Sun, 29 Dec 2002 21:35:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 128.107.253.40 Original-X-Trace: posting.google.com 1041215602 8387 127.0.0.1 (30 Dec 2002 02:33:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 30 Dec 2002 02:33:22 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:108592 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5121 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5121 kai.grossjohann@uni-duisburg.de (Kai Großjohann wrote in message news:<84el80pxx6.fsf@lucy.cs.uni-dortmund.de>... > tennis_smith@yahoo.com (Tennis Smith) writes: > > > How do I make "PROC_NAME" the contents of a var I pass at invocation time? > > I'm not sure that define-skeleton is the right way to do that. > > Do you want the user to type in the name of the procedure? > Investigate "interactors" in the skeleton documentation. > > If you really want to call the skeleton programmatically and pass > args to it, I suggest that you instead write a function which invokes > skeleton-insert. That function can then receive arguments. I got it. :) Here's all that's needed for a *simple* var to be passed: (define-skeleton tcl-proc "A simple tcl proc skeleton" "Enter new proc name: " \n "#\n#\n#\n" "proc " str " { } {" \n _ \n "} # end " str )