[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/vc.el,v
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/vc.el,v |
Date: |
Wed, 20 Jun 2007 16:32:12 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Stefan Monnier <monnier> 07/06/20 16:32:11
Index: vc.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/vc.el,v
retrieving revision 1.427
retrieving revision 1.428
diff -u -b -r1.427 -r1.428
--- vc.el 15 Jun 2007 18:50:19 -0000 1.427
+++ vc.el 20 Jun 2007 16:32:09 -0000 1.428
@@ -105,7 +105,9 @@
;;
;; * registered (file)
;;
-;; Return non-nil if FILE is registered in this backend.
+;; Return non-nil if FILE is registered in this backend. Both this
+;; function as well as `state' should be careful to fail gracefully in the
+;; event that the backend executable is absent.
;;
;; * state (file)
;;
@@ -270,6 +272,12 @@
;; Insert the revision log of FILE into BUFFER, or the *vc* buffer
;; if BUFFER is nil.
;;
+;; - log-view-mode ()
+;;
+;; Mode to use for the output of print-log. This defaults to
+;; `log-view-mode' and is expected to be changed (if at all) to a derived
+;; mode of `log-view-mode'.
+;;
;; - show-log-entry (version)
;;
;; If provided, search the log entry for VERSION in the current buffer,
@@ -2453,7 +2461,7 @@
(pop-to-buffer (current-buffer))
(vc-exec-after
`(let ((inhibit-read-only t))
- (log-view-mode)
+ (vc-call-backend ',(vc-backend file) 'log-view-mode)
(goto-char (point-max)) (forward-line -1)
(while (looking-at "=*\n")
(delete-char (- (match-end 0) (match-beginning 0)))
@@ -2468,6 +2476,7 @@
',focus-rev)
(set-buffer-modified-p nil)))))
+(defun vc-default-log-view-mode (backend) (log-view-mode))
(defun vc-default-show-log-entry (backend rev)
(with-no-warnings
(log-view-goto-rev rev)))