diff options
| author | Richard M. Stallman | 1993-04-29 17:58:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-04-29 17:58:37 +0000 |
| commit | caf15d4f18205994732211381bb7331e0a2b71a8 (patch) | |
| tree | 64c101816eb218f3a41e7256dee71b9eec2c3341 | |
| parent | e5f920d7e970d9e06e067b02d41ebe74783fa176 (diff) | |
| download | emacs-caf15d4f18205994732211381bb7331e0a2b71a8.tar.gz emacs-caf15d4f18205994732211381bb7331e0a2b71a8.zip | |
(vc-match-substring): Renamed from match-substring.
(vc-parse-buffer): Use new name.
| -rw-r--r-- | lisp/vc.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index cbbec3bbb5b..434f2543148 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1091,7 +1091,7 @@ From a program, any arguments are passed to the `rcs2log' script." | |||
| 1091 | 1091 | ||
| 1092 | ;; Functions for querying the master and lock files. | 1092 | ;; Functions for querying the master and lock files. |
| 1093 | 1093 | ||
| 1094 | (defun match-substring (bn) | 1094 | (defun vc-match-substring (bn) |
| 1095 | (buffer-substring (match-beginning bn) (match-end bn))) | 1095 | (buffer-substring (match-beginning bn) (match-end bn))) |
| 1096 | 1096 | ||
| 1097 | (defun vc-parse-buffer (patterns &optional file properties) | 1097 | (defun vc-parse-buffer (patterns &optional file properties) |
| @@ -1107,16 +1107,16 @@ From a program, any arguments are passed to the `rcs2log' script." | |||
| 1107 | (if (string-match "\\\\(.*\\\\(" p) | 1107 | (if (string-match "\\\\(.*\\\\(" p) |
| 1108 | (let ((latest-date "") (latest-val)) | 1108 | (let ((latest-date "") (latest-val)) |
| 1109 | (while (re-search-forward p nil t) | 1109 | (while (re-search-forward p nil t) |
| 1110 | (let ((date (match-substring 2))) | 1110 | (let ((date (vc-match-substring 2))) |
| 1111 | (if (string< latest-date date) | 1111 | (if (string< latest-date date) |
| 1112 | (progn | 1112 | (progn |
| 1113 | (setq latest-date date) | 1113 | (setq latest-date date) |
| 1114 | (setq latest-val | 1114 | (setq latest-val |
| 1115 | (match-substring 1)))))) | 1115 | (vc-match-substring 1)))))) |
| 1116 | latest-val)) | 1116 | latest-val)) |
| 1117 | (prog1 | 1117 | (prog1 |
| 1118 | (and (re-search-forward p nil t) | 1118 | (and (re-search-forward p nil t) |
| 1119 | (let ((value (match-substring 1))) | 1119 | (let ((value (vc-match-substring 1))) |
| 1120 | (if file | 1120 | (if file |
| 1121 | (vc-file-setprop file (car properties) value)) | 1121 | (vc-file-setprop file (car properties) value)) |
| 1122 | value)) | 1122 | value)) |