all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tennis_smith@yahoo.com (Tennis Smith)
Subject: Re: Skeleton & Abbrev
Date: 29 Dec 2002 18:33:21 -0800	[thread overview]
Message-ID: <7f477f72.0212291833.4b8b1034@posting.google.com> (raw)
In-Reply-To: 84el80pxx6.fsf@lucy.cs.uni-dortmund.de

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
)

      reply	other threads:[~2002-12-30  2:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-27  1:31 Skeleton & Abbrev Tennis Smith
2002-12-27 20:19 ` Kai Großjohann
2002-12-29 16:06   ` Tennis Smith
2002-12-29 16:55     ` Kai Großjohann
2002-12-30  2:33       ` Tennis Smith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7f477f72.0212291833.4b8b1034@posting.google.com \
    --to=tennis_smith@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.