mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
(skeleton-edebug-spec): First cut of an edebug spec.
(define-skeleton): Use it.
This commit is contained in:
parent
69155eccaf
commit
7076c5cd53
@ -112,11 +112,16 @@ are integer buffer positions in the reverse order of the insertion order.")
|
||||
(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
|
||||
|
Loading…
Reference in New Issue
Block a user