summaryrefslogtreecommitdiff
path: root/lisp/vc-svn.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-09-03 06:25:50 +0000
committerGlenn Morris <rgm@gnu.org>2007-09-03 06:25:50 +0000
commitad70e472bd0e2389c46efd55019f9082f4cfc8b2 (patch)
tree1e382fb9c9f7aafa7e9d676605ba1cb2e6e12774 /lisp/vc-svn.el
parentf0988e470705898dc11f60344a2a2ff7f2ce727f (diff)
downloademacs-ad70e472bd0e2389c46efd55019f9082f4cfc8b2.tar.gz
Improve previous change.
(vc-svn-print-log): If there is only one file, use "Working file:" as the prefix, for the sake of log-view-current-file.
Diffstat (limited to 'lisp/vc-svn.el')
-rw-r--r--lisp/vc-svn.el18
1 files changed, 10 insertions, 8 deletions
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index 219b0b920bc..c66461ff3a3 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -382,14 +382,16 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
(let ((inhibit-read-only t))
(goto-char (point-min))
;; Add a line to tell log-view-mode what file this is.
- ;; FIXME as far as I can tell, this function at present can only
- ;; be called with a single file argument. Therefore I changed
- ;; the prompt back to singular, "file(s)" -> "file", since
- ;; otherwise log-view-current-file breaks. It's trivial to
- ;; adapt log-view-file-re for the new prefix, but less trivial
- ;; to make log-view-current-file actually do the right thing in
- ;; the multiple file case.
- (insert "Working file: " (vc-delistify (mapcar 'file-relative-name files)) "\n"))
+ ;; FIXME if there are multiple files, log-view-current-file
+ ;; breaks. It's trivial to adapt log-view-file-re for the
+ ;; changed prefix, but less trivial to make
+ ;; log-view-current-file actually do the right thing in the
+ ;; multiple file case.
+ (insert (format "Working file%s: "
+ (if (= (length files) 1)
+ ""
+ "s"))
+ (vc-delistify (mapcar 'file-relative-name files)) "\n"))
(vc-svn-command
buffer
(if (and (= (length files) 1) (vc-stay-local-p (car files)) (fboundp 'start-process)) 'async 0)