aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2002-10-03 22:43:01 +0000
committerStefan Monnier2002-10-03 22:43:01 +0000
commit02e43de8af7fd97e9dc9fbd73ced2d39c10b17a7 (patch)
tree43b00e135c0731c1ce6fd3e96e276b40c6f8868f
parent3f0161d0d226e7e3a791153cb377235398688c27 (diff)
downloademacs-02e43de8af7fd97e9dc9fbd73ced2d39c10b17a7.tar.gz
emacs-02e43de8af7fd97e9dc9fbd73ced2d39c10b17a7.zip
(vc-print-log): Unconditionally use `show-log-entry'.
(vc-default-show-log-entry): New fun.
-rw-r--r--lisp/vc.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 8a6cdb3ac1a..25805fb5978 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -6,7 +6,7 @@
6;; Maintainer: Andre Spiegel <spiegel@gnu.org> 6;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7;; Keywords: tools 7;; Keywords: tools
8 8
9;; $Id: vc.el,v 1.335 2002/07/22 18:52:04 spiegel Exp $ 9;; $Id: vc.el,v 1.336 2002/09/04 20:47:08 spiegel Exp $
10 10
11;; This file is part of GNU Emacs. 11;; This file is part of GNU Emacs.
12 12
@@ -2486,14 +2486,15 @@ allowed and simply skipped)."
2486 (delete-char (- (match-end 0) (match-beginning 0)))) 2486 (delete-char (- (match-end 0) (match-beginning 0))))
2487 (shrink-window-if-larger-than-buffer) 2487 (shrink-window-if-larger-than-buffer)
2488 ;; move point to the log entry for the current version 2488 ;; move point to the log entry for the current version
2489 (if (fboundp 'log-view-goto-rev) 2489 (vc-call-backend ',(vc-backend file)
2490 (log-view-goto-rev ',(vc-workfile-version file)) 2490 'show-log-entry
2491 (if (vc-find-backend-function ',(vc-backend file) 'show-log-entry) 2491 ',(vc-workfile-version file))
2492 (vc-call-backend ',(vc-backend file)
2493 'show-log-entry
2494 ',(vc-workfile-version file))))
2495 (set-buffer-modified-p nil))))) 2492 (set-buffer-modified-p nil)))))
2496 2493
2494(defun vc-default-show-log-entry (backend ver)
2495 (if (fboundp 'log-view-goto-rev)
2496 (log-view-goto-rev rev)))
2497
2497(defun vc-default-comment-history (backend file) 2498(defun vc-default-comment-history (backend file)
2498 "Return a string with all log entries stored in BACKEND for FILE." 2499 "Return a string with all log entries stored in BACKEND for FILE."
2499 (if (vc-find-backend-function backend 'print-log) 2500 (if (vc-find-backend-function backend 'print-log)