]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-mode): Do not use make-local-hook.
authorPavel Janík <Pavel@Janik.cz>
Sat, 16 Feb 2002 09:43:17 +0000 (09:43 +0000)
committerPavel Janík <Pavel@Janik.cz>
Sat, 16 Feb 2002 09:43:17 +0000 (09:43 +0000)
lisp/eshell/esh-mode.el

index acf8b22fecf70dfca6885e3c71964604e2fc52f6..4e031b0e0b88c98765d6640a1e5c1f1f29c83f9b 100644 (file)
@@ -415,8 +415,6 @@ This is used by `eshell-watch-for-password-prompt'."
       (if (and load-hook (boundp load-hook))
          (run-hooks load-hook))))
 
-  (make-local-hook 'pre-command-hook)
-
   (if eshell-send-direct-to-subprocesses
       (add-hook 'pre-command-hook 'eshell-intercept-commands t t))
 
@@ -427,12 +425,9 @@ This is used by `eshell-watch-for-password-prompt'."
     (set (make-local-variable 'scroll-conservatively) 1000))
 
   (when eshell-status-in-modeline
-    (make-local-hook 'eshell-pre-command-hook)
     (add-hook 'eshell-pre-command-hook 'eshell-command-started nil t)
-    (make-local-hook 'eshell-post-command-hook)
     (add-hook 'eshell-post-command-hook 'eshell-command-finished nil t))
 
-  (make-local-hook 'kill-buffer-hook)
   (add-hook 'kill-buffer-hook
            (function
             (lambda ()