From 024ff1707e4a301b21b9de14ab64a406b92dd19f Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 20 Apr 2011 14:39:39 -0300 Subject: * lisp/vc/vc.el (vc-version-ediff): Call ediff-vc-internal directly, since we're in VC after all. --- doc/emacs/ChangeLog | 3 +-- doc/emacs/maintaining.texi | 8 ++++---- lisp/ChangeLog | 7 ++++++- lisp/vc/vc.el | 6 ++---- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index d20c529f043..c6405019ddb 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,7 +1,6 @@ 2011-04-20 Christoph Scholtes - * maintaining.texi (Old Revisions): Add paragraph on new function - vc-ediff. + * maintaining.texi (Old Revisions): Mention new function vc-ediff. 2011-03-26 Chong Yidong diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index bc7484b0557..8f395ba9563 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi @@ -746,10 +746,10 @@ current directory and its subdirectories. @findex vc-ediff The function @code{vc-ediff} works like @code{vc-diff} and provides a way to -visually compare two revisions of a file an Ediff session, @pxref{Top, Ediff, -ediff, The Ediff Manual}. It compares the file associated with the current -buffer with the last repository revision. To compare two arbitrary revisions -of the current file, call @code{vc-ediff} with a prefix argument. +visually compare two revisions of a file in an Ediff session, @pxref{Top, +Ediff, ediff, The Ediff Manual}. It compares the file associated with the +current buffer with the last repository revision. To compare two arbitrary +revisions of the current file, call @code{vc-ediff} with a prefix argument. @vindex vc-diff-switches @vindex vc-rcs-diff-switches diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0f6608d2fc1..6e98a03dd24 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,7 +1,12 @@ +2011-04-20 Stefan Monnier + + * vc/vc.el (vc-version-ediff): Call ediff-vc-internal directly, since + we're in VC after all. + 2011-04-20 Christoph Scholtes * vc/vc.el (vc-diff-build-argument-list-internal) - (vc-version-ediff, vc-ediff): New functions. + (vc-version-ediff, vc-ediff): New commands. (vc-version-diff): Use vc-diff-build-argument-list-internal. 2011-04-20 Stefan Monnier diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 06abde21d4f..1639cd7b1b1 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -1704,10 +1704,8 @@ repository history using ediff." ;; We could spin off an ediff session per file in the file set. ((= (length files) 1) (ediff-load-version-control) - (find-file (car files)) - (funcall - (intern (format "ediff-%S-internal" ediff-version-control-package)) - rev1 rev2 nil)) + (find-file (car files)) ;FIXME: find-file from Elisp is bad. + (ediff-vc-internal rev1 rev2 nil)) (t (error "More than one file is not supported")))) -- cgit v1.2.1