aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Spiegel2004-03-26 06:07:55 +0000
committerAndré Spiegel2004-03-26 06:07:55 +0000
commitcfdc6c099eb91b79c9078f7f28750973c8e90826 (patch)
treee8b0906a75a294454c4c2af602c40b4ebfc7ccc1
parent4392edabd49419a405cc5dabeedac9382f5d5fe1 (diff)
downloademacs-cfdc6c099eb91b79c9078f7f28750973c8e90826.tar.gz
emacs-cfdc6c099eb91b79c9078f7f28750973c8e90826.zip
(vc-print-log): Undo prev change, use new function vc-arg-list from
vc-hooks.el.
-rw-r--r--lisp/vc.el13
1 files changed, 3 insertions, 10 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 4951bc1cd6e..d55951eaff8 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -7,7 +7,7 @@
7;; Maintainer: Andre Spiegel <spiegel@gnu.org> 7;; Maintainer: Andre Spiegel <spiegel@gnu.org>
8;; Keywords: tools 8;; Keywords: tools
9 9
10;; $Id: vc.el,v 1.370 2004/03/23 21:00:36 monnier Exp $ 10;; $Id: vc.el,v 1.371 2004/03/25 15:39:03 sds Exp $
11 11
12;; This file is part of GNU Emacs. 12;; This file is part of GNU Emacs.
13 13
@@ -2334,19 +2334,12 @@ allowed and simply skipped)."
2334If FOCUS-REV is non-nil, leave the point at that revision." 2334If FOCUS-REV is non-nil, leave the point at that revision."
2335 (interactive) 2335 (interactive)
2336 (vc-ensure-vc-buffer) 2336 (vc-ensure-vc-buffer)
2337 (let* ((file buffer-file-name) 2337 (let ((file buffer-file-name))
2338 (backend-function
2339 (symbol-function
2340 (vc-find-backend-function (vc-backend file) 'print-log)))
2341 (print-log-args
2342 (if (byte-code-function-p backend-function)
2343 (aref backend-function 0)
2344 (cadr backend-function))))
2345 (or focus-rev (setq focus-rev (vc-workfile-version file))) 2338 (or focus-rev (setq focus-rev (vc-workfile-version file)))
2346 ;; Don't switch to the output buffer before running the command, 2339 ;; Don't switch to the output buffer before running the command,
2347 ;; so that any buffer-local settings in the vc-controlled 2340 ;; so that any buffer-local settings in the vc-controlled
2348 ;; buffer can be accessed by the command. 2341 ;; buffer can be accessed by the command.
2349 (if (cdr print-log-args) 2342 (if (> (length (vc-arg-list (vc-backend file) 'print-log)) 1)
2350 (progn 2343 (progn
2351 (vc-call print-log file "*vc-change-log*") 2344 (vc-call print-log file "*vc-change-log*")
2352 (set-buffer "*vc-change-log*")) 2345 (set-buffer "*vc-change-log*"))