all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* skeletons/abbrevs
@ 2003-04-25 15:38 Oliver Lohmann
  0 siblings, 0 replies; 2+ messages in thread
From: Oliver Lohmann @ 2003-04-25 15:38 UTC (permalink / raw)


Hello,

i've got a problem with making useful
skeletons/abbrevs:

i.e. i define the following function/skeleton-construct:
;;===
(defun myFor(s1 s2 s3)
  (interactive "sSet Var: \nsSet BreakCondition: \nsSet Incr: ")
  (skeleton-insert'(nil
                    >"for(" s1 ";" s2 ";" s3 ")" "{" \n
                    > _ \n
                    > "}" \n
                    )))
;;===

how can i put into my abbrev-list with full functionality?

this entry does not work because of the missing parameters:
;;===
(define-abbrev c-mode-abbrev-table ";for"
  "" 'myFor)
;;===


thanks a lot for your help!

Best regards,
 Oliver Lohmann
____________   ______
\   \~~~\   \  \    /   Fachhochschule Wedel
 \   \   \   \  \  /   Feldstrasse 143
  \   \== \   \==\/   D-22880 Wedel
   \   \   \   \     Fachbereich
    \  /    \  /    Medieninformatik
     \/      \/    http://www.fh-wedel.de/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-26  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5197.1051285138.21513.help-gnu-emacs@gnu.org>
2003-04-26  9:34 ` skeletons/abbrevs Oliver Scholz
2003-04-25 15:38 skeletons/abbrevs Oliver Lohmann

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.