|
Re: Skeleton & Abbrev: msg#00941emacs.help
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> |
|---|---|---|
| Previous by Date: | Password processing in Lisp: 00941, Tennis Smith |
|---|---|
| Next by Date: | Re: Emacs and C++: 00941, Rikard Bosnjakovic |
| Previous by Thread: | Re: Skeleton & Abbrevi: 00941, Kai Großjohann |
| Next by Thread: | adding fonts to font menu?: 00941, Peter Lampione |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |