Jim Smith <[EMAIL PROTECTED]> writes: > I would like to use emacs/ediff as an external diff program with > tortoise CVS on the windows platform. Basically, this means I need > to invoke emacs from the command line with two file arguments and > have emacs open an ediff session on those two files.
(defun command-line-diff (switch) (let ((file1 (pop command-line-args-left)) (file2 (pop command-line-args-left))) (ediff file1 file2))) (add-to-list 'command-switch-alist '("diff" . command-line-diff)) ;; Usage: emacs -diff file1 file2 -- Johan Bockgård _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs