Function: c-punctuation-in

c-punctuation-in is a byte-compiled function defined in cc-engine.el.gz.

Signature

(c-punctuation-in FROM TO)

Documentation

Return non-nil if there is a non-comment non-macro punctuation character between FROM and TO. FROM must not be in a string or comment. The returned value is the position of the first such character.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-engine.el.gz
(defun c-punctuation-in (from to)
  "Return non-nil if there is a non-comment non-macro punctuation character
between FROM and TO.  FROM must not be in a string or comment.  The returned
value is the position of the first such character."
  (save-excursion
    (goto-char from)
    (let ((pos (point)))
      (while (progn (skip-chars-forward c-symbol-chars to)
		    (c-forward-syntactic-ws to)
		    (> (point) pos))
	(setq pos (point))))
    (and (< (point) to) (point))))