]> git.eshelyaron.com Git - emacs.git/commitdiff
eshell fix for change in return value of `diff' command (bug#10420)
authorGlenn Morris <rgm@gnu.org>
Thu, 5 Jan 2012 23:36:41 +0000 (18:36 -0500)
committerGlenn Morris <rgm@gnu.org>
Thu, 5 Jan 2012 23:36:41 +0000 (18:36 -0500)
* lisp/eshell/em-unix.el (diff-no-select): Autoload it.
(eshell/diff): Use diff-no-select.

lisp/ChangeLog
lisp/eshell/em-unix.el

index d2ee593c38931967c41ae33577a701f89eedd7b2..e4d4062668d9313753139cccf3f9b316671be495 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-05  Glenn Morris  <rgm@gnu.org>
+
+       * eshell/em-unix.el (diff-no-select): Autoload it.
+       (eshell/diff): Use diff-no-select.  (Bug#10420)
+
 2012-01-05  Chong Yidong  <cyd@gnu.org>
 
        * shell.el (shell-dynamic-complete-functions): Revert last change.
index 21deccb8093f000286ddae570e345efc3c680fb3..f24180b5c7f25e54d0e672f66e93020504cba52f 100644 (file)
@@ -965,6 +965,8 @@ Show wall-clock time elapsed during execution of COMMAND.")
     ((string-match "[^[:blank:]]" string) string)
     (nil)))
 
+(autoload 'diff-no-select "diff")
+
 (defun eshell/diff (&rest args)
   "Alias \"diff\" to call Emacs `diff' function."
   (let ((orig-args (eshell-stringify-list (eshell-flatten-list args))))
@@ -986,8 +988,9 @@ Show wall-clock time elapsed during execution of COMMAND.")
          (setcdr (last args 3) nil))
        (with-current-buffer
            (condition-case err
-               (diff old new
-                     (nil-blank-string (eshell-flatten-and-stringify args)))
+               (diff-no-select
+                old new
+                (nil-blank-string (eshell-flatten-and-stringify args)))
              (error
               (throw 'eshell-replace-command
                      (eshell-parse-command "*diff" orig-args))))