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

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

skeletons/abbrevs


From: Oliver Lohmann
Subject: skeletons/abbrevs
Date: Fri, 25 Apr 2003 17:38:21 +0200

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/






reply via email to

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