diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-06-23 22:46:56 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-06-23 22:46:56 +0000 |
commit | 7cf1a55875e597e2eeecce3f7e5814e66a11397b (patch) | |
tree | aad5fe17e7d81794236ff96f15e75f1134aafb70 /lisp/vc-hooks.el | |
parent | 587d0e5d39feab4e54e92c950e8a90a846d753c1 (diff) | |
download | emacs-7cf1a55875e597e2eeecce3f7e5814e66a11397b.tar.gz |
(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.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r-- | lisp/vc-hooks.el | 11 |
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.") ;; (default 8 kByte), until the first occurence of ;; LIMIT is found. The function returns nil if FILE ;; doesn't exist. + (erase-buffer) (cond ((file-exists-p file) (cond (limit (if (not blocksize) (setq blocksize 8192)) @@ -231,8 +232,7 @@ value of this flag.") ((eq (vc-backend file) 'SCCS) (set-buffer (get-buffer-create "*vc-info*")) (if (vc-insert-file (vc-lock-file file)) - (progn (vc-parse-locks file (buffer-string)) - (erase-buffer)) + (vc-parse-locks file (buffer-string)) (vc-file-setprop file 'vc-master-locks 'none)) (vc-insert-file (vc-name file) "^\001e") (vc-parse-buffer @@ -266,8 +266,7 @@ value of this flag.") default-branch) (vc-file-setprop file 'vc-top-version default-branch)) ;; else, search for the tip of the default branch - (t (erase-buffer) - (vc-insert-file (vc-name file) "^desc") + (t (vc-insert-file (vc-name file) "^desc") (vc-parse-buffer (list (list (concat "^\\(" (regexp-quote default-branch) @@ -586,7 +585,9 @@ value of this flag.") "author[ \t]+" (regexp-quote (user-login-name)) ";") 1 2)) file - '(vc-latest-version vc-your-latest-version)))) + '(vc-latest-version vc-your-latest-version)) + (if (get-buffer "*vc-info*") + (kill-buffer (get-buffer "*vc-info*"))))) (t (vc-fetch-master-properties file)) )) |