]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff): Add optional argument no-async, and use the above argument.
authorColin Walters <walters@gnu.org>
Sat, 7 Sep 2002 21:30:19 +0000 (21:30 +0000)
committerColin Walters <walters@gnu.org>
Sat, 7 Sep 2002 21:30:19 +0000 (21:30 +0000)
lisp/diff.el

index ee49482cfe82368df680ae7c70bc261b967450c9..06387062feb151d54304d8116fa04ccf8ef97044 100644 (file)
@@ -190,11 +190,12 @@ is nil, REGEXP matches only half a hunk.")
                (cons msg code))))))
 
 ;;;###autoload
-(defun diff (old new &optional switches)
+(defun diff (old new &optional switches no-async)
   "Find and display the differences between OLD and NEW files.
 Interactively the current buffer's file name is the default for NEW
 and a backup file for NEW is the default for OLD.
-With prefix arg, prompt for diff switches."
+With prefix arg, prompt for diff switches.
+If NO-ASYNC is non-nil, call diff syncrhonously."
   (interactive
    (nconc
     (let (oldf newf)
@@ -249,7 +250,8 @@ With prefix arg, prompt for diff switches."
          (setq buf
                (compile-internal command
                                  "No more differences" "Diff"
-                                 'diff-parse-differences))
+                                 'diff-parse-differences
+                                 nil nil nil nil nil nil no-async))
          (set-buffer buf)
          (set (make-local-variable 'diff-old-file) old)
          (set (make-local-variable 'diff-new-file) new)