From d783d30393eb554f9a0d780570a7946a165885fb Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 4 Mar 2011 20:11:05 -0800 Subject: Default all eshell hooks to nil (bug#5375) * eshell/esh-mode.el (eshell-kill-buffer-function): New function. (eshell-mode): Use eshell-kill-buffer-function. Run the -initialize functions independently of the -load-hooks. * eshell/esh-proc.el (eshell-kill-process-function): New function. (eshell-gather-process-output, eshell-sentinel) (eshell-interrupt-process, eshell-kill-process, eshell-quit-process): Use eshell-kill-process-function. * eshell/em-alias.el (eshell-alias-load-hook): * eshell/em-banner.el (eshell-banner-load-hook): * eshell/em-cmpl.el (eshell-cmpl-load-hook): * eshell/em-dirs.el (eshell-dirs-load-hook): * eshell/em-glob.el (eshell-glob-load-hook): * eshell/em-hist.el (eshell-hist-load-hook): * eshell/em-pred.el (eshell-pred-load-hook): * eshell/em-prompt.el (eshell-prompt-load-hook): * eshell/em-rebind.el (eshell-rebind-load-hook): * eshell/em-script.el (eshell-script-load-hook): * eshell/em-smart.el (eshell-smart-load-hook): * eshell/em-term.el (eshell-term-load-hook): * eshell/em-unix.el (eshell-unix-load-hook): * eshell/esh-arg.el (eshell-arg-load-hook): * eshell/esh-cmd.el (eshell-cmd-load-hook): * eshell/esh-ext.el (eshell-ext-load-hook): * eshell/esh-io.el (eshell-io-load-hook): * eshell/esh-mode.el (eshell-exit-hook): * eshell/esh-proc.el (eshell-proc-load-hook, eshell-kill-hook): * eshell/esh-var.el (eshell-var-load-hook): Set default hook values to nil. (Bug#5375) --- lisp/eshell/esh-io.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/eshell/esh-io.el') diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el index ef8966f1d7d..71fae34b360 100644 --- a/lisp/eshell/esh-io.el +++ b/lisp/eshell/esh-io.el @@ -71,8 +71,9 @@ though they were files." ;;; User Variables: -(defcustom eshell-io-load-hook '(eshell-io-initialize) +(defcustom eshell-io-load-hook nil "A hook that gets run when `eshell-io' is loaded." + :version "24.1" ; removed eshell-io-initialize :type 'hook :group 'eshell-io) -- cgit v1.2.3