aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorJohn Wiegley2001-04-24 06:31:46 +0000
committerJohn Wiegley2001-04-24 06:31:46 +0000
commitef59cfc6638a8ac3fccbee88482d142e95c32f81 (patch)
tree3740b1c9e86580c6b741b583e1ffa7dda795df82 /lisp/eshell
parent157975e356a04f86bcad1f3503271d10149e7399 (diff)
downloademacs-ef59cfc6638a8ac3fccbee88482d142e95c32f81.tar.gz
emacs-ef59cfc6638a8ac3fccbee88482d142e95c32f81.zip
(eshell/diff): Fixed problems that were occurring with Emacs 21's
diff.el/compile.el interaction layer.
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/em-unix.el22
1 files changed, 14 insertions, 8 deletions
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el
index 726fd0eeaf6..1dfec1e7021 100644
--- a/lisp/eshell/em-unix.el
+++ b/lisp/eshell/em-unix.el
@@ -947,14 +947,20 @@ Show wall-clock time elapsed during execution of COMMAND.")
947 (throw 'eshell-replace-command 947 (throw 'eshell-replace-command
948 (eshell-parse-command "*diff" orig-args)))) 948 (eshell-parse-command "*diff" orig-args))))
949 (when (fboundp 'diff-mode) 949 (when (fboundp 'diff-mode)
950 (diff-mode) 950 (make-local-variable 'compilation-finish-functions)
951 (set (make-local-variable 'eshell-diff-window-config) config) 951 (add-hook
952 (local-set-key [?q] 'eshell-diff-quit) 952 'compilation-finish-functions
953 (if (fboundp 'turn-on-font-lock-if-enabled) 953 `(lambda (buff msg)
954 (turn-on-font-lock-if-enabled)))) 954 (with-current-buffer buff
955 (other-window 1) 955 (diff-mode)
956 (goto-char (point-min)) 956 (set (make-local-variable 'eshell-diff-window-config)
957 nil)))) 957 ,config)
958 (local-set-key [?q] 'eshell-diff-quit)
959 (if (fboundp 'turn-on-font-lock-if-enabled)
960 (turn-on-font-lock-if-enabled))
961 (goto-char (point-min))))))
962 (pop-to-buffer (current-buffer))))))
963 nil)
958 964
959(defun eshell/locate (&rest args) 965(defun eshell/locate (&rest args)
960 "Alias \"locate\" to call Emacs `locate' function." 966 "Alias \"locate\" to call Emacs `locate' function."