help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple inserts within skeletons


From: Oliver Scholz
Subject: Re: multiple inserts within skeletons
Date: Tue, 29 Apr 2003 11:58:07 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt)

Oliver Lohmann <nagash2270@yahoo.de> writes:

> hello,
>
> i want to repeat my inputs for @param with the follwing construct
> (only an example) until i take a key or any other trigger
> to exit the input ring:
>
> (defun myComment(s1 s2)
>   (interactive "sbriefDescr: \nsMethodParam: ")
>   (skeleton-insert'(nil
[...]

Why don't you use `define-skeleton' instead of writing a defun with
`skeleton-insert'?

A skeleton may contain a sub-skeleton as an element. In this case it
is repeated until the user hits RET without having anything
entered. For example:

(define-skeleton my-comment
  "FIXME: documentation"
  nil
  "BEGIN NONSENSE" \n
  > "Everything on the following lines" \n
  > "is pure nonsense." \n
  ("Type a silly word: " "lirum larum -- " str & \n | -15)
  "END NONSENSE")


    Oliver
-- 
10 Floréal an 211 de la Révolution
Liberté, Egalité, Fraternité!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]