diff options
| author | Glenn Morris | 2007-09-03 06:25:50 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-03 06:25:50 +0000 |
| commit | ad70e472bd0e2389c46efd55019f9082f4cfc8b2 (patch) | |
| tree | 1e382fb9c9f7aafa7e9d676605ba1cb2e6e12774 | |
| parent | f0988e470705898dc11f60344a2a2ff7f2ce727f (diff) | |
| download | emacs-ad70e472bd0e2389c46efd55019f9082f4cfc8b2.tar.gz emacs-ad70e472bd0e2389c46efd55019f9082f4cfc8b2.zip | |
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.
| -rw-r--r-- | lisp/vc-svn.el | 18 |
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." | |||
| 382 | (let ((inhibit-read-only t)) | 382 | (let ((inhibit-read-only t)) |
| 383 | (goto-char (point-min)) | 383 | (goto-char (point-min)) |
| 384 | ;; Add a line to tell log-view-mode what file this is. | 384 | ;; Add a line to tell log-view-mode what file this is. |
| 385 | ;; FIXME as far as I can tell, this function at present can only | 385 | ;; FIXME if there are multiple files, log-view-current-file |
| 386 | ;; be called with a single file argument. Therefore I changed | 386 | ;; breaks. It's trivial to adapt log-view-file-re for the |
| 387 | ;; the prompt back to singular, "file(s)" -> "file", since | 387 | ;; changed prefix, but less trivial to make |
| 388 | ;; otherwise log-view-current-file breaks. It's trivial to | 388 | ;; log-view-current-file actually do the right thing in the |
| 389 | ;; adapt log-view-file-re for the new prefix, but less trivial | 389 | ;; multiple file case. |
| 390 | ;; to make log-view-current-file actually do the right thing in | 390 | (insert (format "Working file%s: " |
| 391 | ;; the multiple file case. | 391 | (if (= (length files) 1) |
| 392 | (insert "Working file: " (vc-delistify (mapcar 'file-relative-name files)) "\n")) | 392 | "" |
| 393 | "s")) | ||
| 394 | (vc-delistify (mapcar 'file-relative-name files)) "\n")) | ||
| 393 | (vc-svn-command | 395 | (vc-svn-command |
| 394 | buffer | 396 | buffer |
| 395 | (if (and (= (length files) 1) (vc-stay-local-p (car files)) (fboundp 'start-process)) 'async 0) | 397 | (if (and (= (length files) 1) (vc-stay-local-p (car files)) (fboundp 'start-process)) 'async 0) |