aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-09-18 20:44:55 -0700
committerGlenn Morris2013-09-18 20:44:55 -0700
commit336b5a56bc0e840cd2a59f976b2f801d5a4a260c (patch)
tree917cf855f11791cb0f8248ca6b3a75aabea78c39
parent390b7f9de6215917c6cf08e30ca898562d2517e3 (diff)
downloademacs-336b5a56bc0e840cd2a59f976b2f801d5a4a260c.tar.gz
emacs-336b5a56bc0e840cd2a59f976b2f801d5a4a260c.zip
Revise previous esh-proc change
* eshell/esh-proc.el (eshell-kill-process-function): Remove eshell-reset-after-proc from eshell-kill-hook if present. (eshell-reset-after-proc): Remove unused arg `proc'.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/eshell/esh-proc.el14
2 files changed, 11 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e2173ef57cc..97b22964601 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12013-09-19 Glenn Morris <rgm@gnu.org> 12013-09-19 Glenn Morris <rgm@gnu.org>
2 2
3 * eshell/esh-proc.el (eshell-kill-process-function):
4 Remove eshell-reset-after-proc from eshell-kill-hook if present.
5 (eshell-reset-after-proc): Remove unused arg `proc'.
6
3 * eshell/esh-util.el (eshell-read-hosts-file): Use `filename' arg. 7 * eshell/esh-util.el (eshell-read-hosts-file): Use `filename' arg.
4 (directory-files-and-attributes): Mark unused arg. 8 (directory-files-and-attributes): Mark unused arg.
5 9
@@ -14,8 +18,7 @@
14 18
15 * eshell/em-smart.el (eshell-smart-scroll-window) 19 * eshell/em-smart.el (eshell-smart-scroll-window)
16 (eshell-disable-after-change): 20 (eshell-disable-after-change):
17 * eshell/em-term.el (eshell-term-sentinel): 21 * eshell/em-term.el (eshell-term-sentinel): Mark unused arg.
18 * eshell/esh-proc.el (eshell-reset-after-proc): Mark unused arg.
19 22
202013-09-18 Alan Mackenzie <acm@muc.de> 232013-09-18 Alan Mackenzie <acm@muc.de>
21 24
diff --git a/lisp/eshell/esh-proc.el b/lisp/eshell/esh-proc.el
index b72e6328d64..ab7fd349893 100644
--- a/lisp/eshell/esh-proc.el
+++ b/lisp/eshell/esh-proc.el
@@ -116,9 +116,11 @@ information, for example."
116(defun eshell-kill-process-function (proc status) 116(defun eshell-kill-process-function (proc status)
117 "Function run when killing a process. 117 "Function run when killing a process.
118Runs `eshell-reset-after-proc' and `eshell-kill-hook', passing arguments 118Runs `eshell-reset-after-proc' and `eshell-kill-hook', passing arguments
119PROC and STATUS to both." 119PROC and STATUS to functions on the latter."
120 (or (memq 'eshell-reset-after-proc eshell-kill-hook) 120 ;; Was there till 24.1, but it is not optional.
121 (eshell-reset-after-proc proc status)) 121 (if (memq 'eshell-reset-after-proc eshell-kill-hook)
122 (setq eshell-kill-hook (delq 'eshell-reset-after-proc eshell-kill-hook)))
123 (eshell-reset-after-proc status)
122 (run-hook-with-args 'eshell-kill-hook proc status)) 124 (run-hook-with-args 'eshell-kill-hook proc status))
123 125
124(defun eshell-proc-initialize () 126(defun eshell-proc-initialize ()
@@ -133,11 +135,7 @@ PROC and STATUS to both."
133; (define-key eshell-command-map [(control ?z)] 'eshell-stop-process) 135; (define-key eshell-command-map [(control ?z)] 'eshell-stop-process)
134 (define-key eshell-command-map [(control ?\\)] 'eshell-quit-process)) 136 (define-key eshell-command-map [(control ?\\)] 'eshell-quit-process))
135 137
136;; This used to be on `eshell-kill-hook', which calls its functions 138(defun eshell-reset-after-proc (status)
137;; with two arguments. Nowadays we call it directly in
138;; `eshell-kill-process-function', but in case anyone still has it
139;; on `eshell-kill-hook', _proc has to stay.
140(defun eshell-reset-after-proc (_proc status)
141 "Reset the command input location after a process terminates. 139 "Reset the command input location after a process terminates.
142The signals which will cause this to happen are matched by 140The signals which will cause this to happen are matched by
143`eshell-reset-signals'." 141`eshell-reset-signals'."