aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Fox1993-09-21 07:51:53 +0000
committerBrian Fox1993-09-21 07:51:53 +0000
commit4805f679cdae6d5a3278948e1a556c13b28bd364 (patch)
tree8062018743f6af4b1bfa3b4b69bc145d0dbdbfdc
parent90a4435136f88aa73b3a4f89f8cbb12d6687fa42 (diff)
downloademacs-4805f679cdae6d5a3278948e1a556c13b28bd364.tar.gz
emacs-4805f679cdae6d5a3278948e1a556c13b28bd364.zip
(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.
-rw-r--r--lisp/vc.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 0a15abf3588..7795850016c 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -207,12 +207,9 @@ the master name of FILE; this is appended to an optional list of FLAGS."
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)
@@ -1072,7 +1069,12 @@ levels in the snapshot."
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)