Function: srecode-field-next
srecode-field-next is an interactive and byte-compiled function
defined in fields.el.gz.
Signature
(srecode-field-next)
Documentation
Move to the next field.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/fields.el.gz
(defun srecode-field-next ()
"Move to the next field."
(interactive)
(let* ((f (srecode-overlaid-at-point 'srecode-field))
(tr (srecode-overlaid-at-point 'srecode-template-inserted-region))
)
(when (not f) (error "Not in a field"))
(when (not tr) (error "Not in a template region"))
(let ((fields (oref tr fields)))
(while fields
;; Loop over fields till we match. Then move to the next one.
(when (eq f (car fields))
(if (cdr fields)
(srecode-field-goto (car (cdr fields)))
(srecode-field-goto (car (oref tr fields))))
(setq fields nil)
)
(setq fields (cdr fields))))
))