summaryrefslogtreecommitdiff
path: root/lisp/vc-hooks.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-06-20 02:56:43 +0000
committerRichard M. Stallman <rms@gnu.org>1995-06-20 02:56:43 +0000
commitee526b55523e49d76e8f9a420217bb466dd1ffbd (patch)
tree13536a45319f1b616dac9c39ff46f6bb42fed85a /lisp/vc-hooks.el
parent6fbcbee7e5224974ddc1bce70b84c0233de7a5f8 (diff)
downloademacs-ee526b55523e49d76e8f9a420217bb466dd1ffbd.tar.gz
(vc-fetch-properties): Add save-excursion.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r--lisp/vc-hooks.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index e14d4c2cea0..39f94df20a8 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -572,16 +572,17 @@ value of this flag.")
;; if that wasn't already done.
(cond
((eq (vc-backend file) 'RCS)
- (set-buffer (get-buffer-create "*vc-info*"))
- (vc-insert-file (vc-name file) "^desc")
- (vc-parse-buffer
- (list '("^\\([0-9]+\\.[0-9.]+\\)\ndate[ \t]+\\([0-9.]+\\);" 1 2)
- (list (concat "^\\([0-9]+\\.[0-9.]+\\)\n"
- "date[ \t]+\\([0-9.]+\\);[ \t]+"
- "author[ \t]+"
- (regexp-quote (user-login-name)) ";") 1 2))
- file
- '(vc-latest-version vc-your-latest-version)))
+ (save-excursion
+ (set-buffer (get-buffer-create "*vc-info*"))
+ (vc-insert-file (vc-name file) "^desc")
+ (vc-parse-buffer
+ (list '("^\\([0-9]+\\.[0-9.]+\\)\ndate[ \t]+\\([0-9.]+\\);" 1 2)
+ (list (concat "^\\([0-9]+\\.[0-9.]+\\)\n"
+ "date[ \t]+\\([0-9.]+\\);[ \t]+"
+ "author[ \t]+"
+ (regexp-quote (user-login-name)) ";") 1 2))
+ file
+ '(vc-latest-version vc-your-latest-version))))
(t (vc-fetch-master-properties file))
))