Mercurial > emacs
changeset 51303:cbe53c66e890
(skeleton-edebug-spec): First cut of an edebug spec.
(define-skeleton): Use it.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 28 May 2003 18:41:41 +0000 |
parents | 501da7e8e7f7 |
children | 955ff3c53a87 |
files | lisp/skeleton.el |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/skeleton.el Wed May 28 14:25:16 2003 +0000 +++ b/lisp/skeleton.el Wed May 28 18:41:41 2003 +0000 @@ -112,11 +112,16 @@ (defvar skeleton-point) (defvar skeleton-regions) +(def-edebug-spec skeleton-edebug-spec + ([&or null stringp (stringp &rest stringp) [[¬ atom] def-form]] + &rest &or "n" "_" "-" ">" "@" "&" "!" "resume:" + ("quote" def-form) skeleton-edebug-spec def-form)) ;;;###autoload (defmacro define-skeleton (command documentation &rest skeleton) "Define a user-configurable COMMAND that enters a statement skeleton. DOCUMENTATION is that of the command. SKELETON is as defined under `skeleton-insert'." + (declare (debug (&define name stringp skeleton-edebug-spec))) (if skeleton-debug (set command skeleton)) `(progn