aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-06-23 22:46:56 +0000
committerRichard M. Stallman1995-06-23 22:46:56 +0000
commit07de4c3d64cb0591953bc15b6736eaa403a5cb6b (patch)
tree8432a53a13c9dddda7e729b0b2417d64c9a9e9d4
parent8a2b28d2a0eeec96ff744a01bae8023d674deeb1 (diff)
downloademacs-07de4c3d64cb0591953bc15b6736eaa403a5cb6b.tar.gz
emacs-07de4c3d64cb0591953bc15b6736eaa403a5cb6b.zip
(vc-insert-file): Erase the current buffer before inserting the file.
(vc-fetch-master-properties, vc-fetch-properties): Don't erase the buffer because that is now done in vc-insert-file. (vc-fetch-properties): Kill the *vc-info* buffer when done.
-rw-r--r--lisp/vc-hooks.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 144fd7f9147..86c3711f37f 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -172,6 +172,7 @@ value of this flag.")
172 ;; (default 8 kByte), until the first occurence of 172 ;; (default 8 kByte), until the first occurence of
173 ;; LIMIT is found. The function returns nil if FILE 173 ;; LIMIT is found. The function returns nil if FILE
174 ;; doesn't exist. 174 ;; doesn't exist.
175 (erase-buffer)
175 (cond ((file-exists-p file) 176 (cond ((file-exists-p file)
176 (cond (limit 177 (cond (limit
177 (if (not blocksize) (setq blocksize 8192)) 178 (if (not blocksize) (setq blocksize 8192))
@@ -231,8 +232,7 @@ value of this flag.")
231 ((eq (vc-backend file) 'SCCS) 232 ((eq (vc-backend file) 'SCCS)
232 (set-buffer (get-buffer-create "*vc-info*")) 233 (set-buffer (get-buffer-create "*vc-info*"))
233 (if (vc-insert-file (vc-lock-file file)) 234 (if (vc-insert-file (vc-lock-file file))
234 (progn (vc-parse-locks file (buffer-string)) 235 (vc-parse-locks file (buffer-string))
235 (erase-buffer))
236 (vc-file-setprop file 'vc-master-locks 'none)) 236 (vc-file-setprop file 'vc-master-locks 'none))
237 (vc-insert-file (vc-name file) "^\001e") 237 (vc-insert-file (vc-name file) "^\001e")
238 (vc-parse-buffer 238 (vc-parse-buffer
@@ -266,8 +266,7 @@ value of this flag.")
266 default-branch) 266 default-branch)
267 (vc-file-setprop file 'vc-top-version default-branch)) 267 (vc-file-setprop file 'vc-top-version default-branch))
268 ;; else, search for the tip of the default branch 268 ;; else, search for the tip of the default branch
269 (t (erase-buffer) 269 (t (vc-insert-file (vc-name file) "^desc")
270 (vc-insert-file (vc-name file) "^desc")
271 (vc-parse-buffer (list (list 270 (vc-parse-buffer (list (list
272 (concat "^\\(" 271 (concat "^\\("
273 (regexp-quote default-branch) 272 (regexp-quote default-branch)
@@ -586,7 +585,9 @@ value of this flag.")
586 "author[ \t]+" 585 "author[ \t]+"
587 (regexp-quote (user-login-name)) ";") 1 2)) 586 (regexp-quote (user-login-name)) ";") 1 2))
588 file 587 file
589 '(vc-latest-version vc-your-latest-version)))) 588 '(vc-latest-version vc-your-latest-version))
589 (if (get-buffer "*vc-info*")
590 (kill-buffer (get-buffer "*vc-info*")))))
590 (t (vc-fetch-master-properties file)) 591 (t (vc-fetch-master-properties file))
591 )) 592 ))
592 593