Function: PC-chunk-after

PC-chunk-after is a byte-compiled function defined in complete.el.gz.

Signature

(PC-chunk-after STRING REGEXP)

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/complete.el.gz
;; Returns the sequence of non-delimiter characters that follow regexp in string.
(defun PC-chunk-after (string regexp)
  (if (not (string-match regexp string))
      (let ((message "String %s didn't match regexp %s"))
	(message message string regexp)
	(error message string regexp)))
  (let ((result (substring string (match-end 0))))
    ;; result may contain multiple chunks
    (if (string-match PC-delim-regex result)
	(setq result (substring result 0 (match-beginning 0))))
    result))