diff options
| author | Glenn Morris | 2013-09-18 20:44:55 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-09-18 20:44:55 -0700 |
| commit | 336b5a56bc0e840cd2a59f976b2f801d5a4a260c (patch) | |
| tree | 917cf855f11791cb0f8248ca6b3a75aabea78c39 /lisp/eshell | |
| parent | 390b7f9de6215917c6cf08e30ca898562d2517e3 (diff) | |
| download | emacs-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'.
Diffstat (limited to 'lisp/eshell')
| -rw-r--r-- | lisp/eshell/esh-proc.el | 14 |
1 files changed, 6 insertions, 8 deletions
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. |
| 118 | Runs `eshell-reset-after-proc' and `eshell-kill-hook', passing arguments | 118 | Runs `eshell-reset-after-proc' and `eshell-kill-hook', passing arguments |
| 119 | PROC and STATUS to both." | 119 | PROC 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. |
| 142 | The signals which will cause this to happen are matched by | 140 | The signals which will cause this to happen are matched by |
| 143 | `eshell-reset-signals'." | 141 | `eshell-reset-signals'." |