diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc.el | 13 |
2 files changed, 16 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d446ef93926..7ad751b0475 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-06-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * vc.el (vc-default-log-view-mode): New function. | ||
| 4 | (vc-print-log): Add new `log-view-mode' VC operation. | ||
| 5 | |||
| 1 | 2007-06-20 Juanma Barranquero <lekktu@gmail.com> | 6 | 2007-06-20 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * ido.el (ido-find-file-in-dir): Don't signal an error for | 8 | * ido.el (ido-find-file-in-dir): Don't signal an error for |
diff --git a/lisp/vc.el b/lisp/vc.el index d5c53a15a76..19e428d90a8 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -105,7 +105,9 @@ | |||
| 105 | ;; | 105 | ;; |
| 106 | ;; * registered (file) | 106 | ;; * registered (file) |
| 107 | ;; | 107 | ;; |
| 108 | ;; Return non-nil if FILE is registered in this backend. | 108 | ;; Return non-nil if FILE is registered in this backend. Both this |
| 109 | ;; function as well as `state' should be careful to fail gracefully in the | ||
| 110 | ;; event that the backend executable is absent. | ||
| 109 | ;; | 111 | ;; |
| 110 | ;; * state (file) | 112 | ;; * state (file) |
| 111 | ;; | 113 | ;; |
| @@ -270,6 +272,12 @@ | |||
| 270 | ;; Insert the revision log of FILE into BUFFER, or the *vc* buffer | 272 | ;; Insert the revision log of FILE into BUFFER, or the *vc* buffer |
| 271 | ;; if BUFFER is nil. | 273 | ;; if BUFFER is nil. |
| 272 | ;; | 274 | ;; |
| 275 | ;; - log-view-mode () | ||
| 276 | ;; | ||
| 277 | ;; Mode to use for the output of print-log. This defaults to | ||
| 278 | ;; `log-view-mode' and is expected to be changed (if at all) to a derived | ||
| 279 | ;; mode of `log-view-mode'. | ||
| 280 | ;; | ||
| 273 | ;; - show-log-entry (version) | 281 | ;; - show-log-entry (version) |
| 274 | ;; | 282 | ;; |
| 275 | ;; If provided, search the log entry for VERSION in the current buffer, | 283 | ;; If provided, search the log entry for VERSION in the current buffer, |
| @@ -2453,7 +2461,7 @@ If FOCUS-REV is non-nil, leave the point at that revision." | |||
| 2453 | (pop-to-buffer (current-buffer)) | 2461 | (pop-to-buffer (current-buffer)) |
| 2454 | (vc-exec-after | 2462 | (vc-exec-after |
| 2455 | `(let ((inhibit-read-only t)) | 2463 | `(let ((inhibit-read-only t)) |
| 2456 | (log-view-mode) | 2464 | (vc-call-backend ',(vc-backend file) 'log-view-mode) |
| 2457 | (goto-char (point-max)) (forward-line -1) | 2465 | (goto-char (point-max)) (forward-line -1) |
| 2458 | (while (looking-at "=*\n") | 2466 | (while (looking-at "=*\n") |
| 2459 | (delete-char (- (match-end 0) (match-beginning 0))) | 2467 | (delete-char (- (match-end 0) (match-beginning 0))) |
| @@ -2468,6 +2476,7 @@ If FOCUS-REV is non-nil, leave the point at that revision." | |||
| 2468 | ',focus-rev) | 2476 | ',focus-rev) |
| 2469 | (set-buffer-modified-p nil))))) | 2477 | (set-buffer-modified-p nil))))) |
| 2470 | 2478 | ||
| 2479 | (defun vc-default-log-view-mode (backend) (log-view-mode)) | ||
| 2471 | (defun vc-default-show-log-entry (backend rev) | 2480 | (defun vc-default-show-log-entry (backend rev) |
| 2472 | (with-no-warnings | 2481 | (with-no-warnings |
| 2473 | (log-view-goto-rev rev))) | 2482 | (log-view-goto-rev rev))) |