Function: c-go-list-forward

c-go-list-forward is a macro defined in cc-defs.el.gz.

Signature

(c-go-list-forward &optional POS LIMIT)

Documentation

Move forward across one balanced group of parentheses starting at POS or point.

Return POINT when we succeed, NIL when we fail. In the latter case, leave point unmoved.

A LIMIT for the search may be given. The start position is assumed to be before it.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-defs.el.gz
;; Wrappers for common scan-lists cases, mainly because it's almost
;; impossible to get a feel for how that function works.

(defmacro c-go-list-forward (&optional pos limit)
  "Move forward across one balanced group of parentheses starting at POS or point.
Return POINT when we succeed, NIL when we fail.  In the latter
case, leave point unmoved.

A LIMIT for the search may be given.  The start position is assumed to be
before it."
  (declare (debug t))
  `(let ((dest (c-safe-scan-lists ,(or pos '(point)) 1 0 ,limit)))
     (when dest (goto-char dest) dest)))