logo       

Re: Skeleton & Abbrev: msg#00941

emacs.help

Subject: Re: Skeleton & Abbrev

kai.grossjohann@xxxxxxxxxxxxxxx (Kai Großjohann wrote in message
news:<84el80pxx6.fsf@xxxxxxxxxxxxxxxxxxxxxxx>...
> tennis_smith@xxxxxxxxx (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
)


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise