Function: vc--remove-regexp

vc--remove-regexp is a byte-compiled function defined in vc.el.gz.

Signature

(vc--remove-regexp REGEXP FILE)

Documentation

Remove all matching for REGEXP in FILE.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
(defun vc--remove-regexp (regexp file)
  "Remove all matching for REGEXP in FILE."
  (if (file-exists-p file)
      (with-current-buffer (find-file-noselect file)
        (goto-char (point-min))
        (while (re-search-forward regexp nil t)
          (replace-match ""))
        (save-buffer))))