Mercurial > emacs
comparison lisp/vc.el @ 4770:987685f55edd
(vc-do-command): Remove debugging output. Use (forward-line -1) instead
of (previous-line 1).
(vc-print-log): Delete extraneous lines of RCS output if present.
author | Brian Fox <bfox@gnu.org> |
---|---|
date | Tue, 21 Sep 1993 07:51:53 +0000 |
parents | 126cf4bdfd35 |
children | 3544f3a41ae6 |
comparison
equal
deleted
inserted
replaced
4769:d1b5ca8f5493 | 4770:987685f55edd |
---|---|
205 (setq squeezed (append squeezed (list vc-file)))) | 205 (setq squeezed (append squeezed (list vc-file)))) |
206 (let ((default-directory (file-name-directory (or file "./"))) | 206 (let ((default-directory (file-name-directory (or file "./"))) |
207 (exec-path (if vc-path (append exec-path vc-path) exec-path))) | 207 (exec-path (if vc-path (append exec-path vc-path) exec-path))) |
208 (setq status (apply 'call-process command nil t nil squeezed))) | 208 (setq status (apply 'call-process command nil t nil squeezed))) |
209 (goto-char (point-max)) | 209 (goto-char (point-max)) |
210 (previous-line 1) | 210 (forward-line -1) |
211 (if (or (not (integerp status)) (< okstatus status)) | 211 (if (or (not (integerp status)) (< okstatus status)) |
212 (progn | 212 (progn |
213 (previous-line 1) | |
214 (print (cons command squeezed)) | |
215 (next-line 1) | |
216 (pop-to-buffer "*vc*") | 213 (pop-to-buffer "*vc*") |
217 (goto-char (point-min)) | 214 (goto-char (point-min)) |
218 (shrink-window-if-larger-than-buffer) | 215 (shrink-window-if-larger-than-buffer) |
219 (error "Running %s...FAILED (%s)" command | 216 (error "Running %s...FAILED (%s)" command |
220 (if (integerp status) | 217 (if (integerp status) |
1070 (pop-to-buffer vc-parent-buffer)) | 1067 (pop-to-buffer vc-parent-buffer)) |
1071 (if (and buffer-file-name (vc-name buffer-file-name)) | 1068 (if (and buffer-file-name (vc-name buffer-file-name)) |
1072 (progn | 1069 (progn |
1073 (vc-backend-print-log buffer-file-name) | 1070 (vc-backend-print-log buffer-file-name) |
1074 (pop-to-buffer (get-buffer-create "*vc*")) | 1071 (pop-to-buffer (get-buffer-create "*vc*")) |
1072 (while (looking-at "=*\n") | |
1073 (delete-char (- (match-end 0) (match-beginning 0))) | |
1074 (forward-line -1)) | |
1075 (goto-char (point-min)) | 1075 (goto-char (point-min)) |
1076 (if (looking-at "[\b\t\n\v\f\r ]+") | |
1077 (delete-char (- (match-end 0) (match-beginning 0)))) | |
1076 (shrink-window-if-larger-than-buffer) | 1078 (shrink-window-if-larger-than-buffer) |
1077 ) | 1079 ) |
1078 (vc-registration-error buffer-file-name) | 1080 (vc-registration-error buffer-file-name) |
1079 ) | 1081 ) |
1080 ) | 1082 ) |