emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114387: Revise previous esh-proc change


From: Glenn Morris
Subject: [Emacs-diffs] trunk r114387: Revise previous esh-proc change
Date: Thu, 19 Sep 2013 03:45:01 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114387
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2013-09-18 20:44:55 -0700
message:
  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'.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/eshell/esh-proc.el        eshproc.el-20091113204419-o5vbwnq5f7feedwu-1874
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-09-19 02:55:00 +0000
+++ b/lisp/ChangeLog    2013-09-19 03:44:55 +0000
@@ -1,5 +1,9 @@
 2013-09-19  Glenn Morris  <address@hidden>
 
+       * 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'.
+
        * eshell/esh-util.el (eshell-read-hosts-file): Use `filename' arg.
        (directory-files-and-attributes): Mark unused arg.
 
@@ -14,8 +18,7 @@
 
        * eshell/em-smart.el (eshell-smart-scroll-window)
        (eshell-disable-after-change):
-       * eshell/em-term.el (eshell-term-sentinel):
-       * eshell/esh-proc.el (eshell-reset-after-proc): Mark unused arg.
+       * eshell/em-term.el (eshell-term-sentinel): Mark unused arg.
 
 2013-09-18  Alan Mackenzie  <address@hidden>
 

=== modified file 'lisp/eshell/esh-proc.el'
--- a/lisp/eshell/esh-proc.el   2013-09-19 02:55:00 +0000
+++ b/lisp/eshell/esh-proc.el   2013-09-19 03:44:55 +0000
@@ -116,9 +116,11 @@
 (defun eshell-kill-process-function (proc status)
   "Function run when killing a process.
 Runs `eshell-reset-after-proc' and `eshell-kill-hook', passing arguments
-PROC and STATUS to both."
-  (or (memq 'eshell-reset-after-proc eshell-kill-hook)
-      (eshell-reset-after-proc proc status))
+PROC and STATUS to functions on the latter."
+  ;; Was there till 24.1, but it is not optional.
+  (if (memq 'eshell-reset-after-proc eshell-kill-hook)
+      (setq eshell-kill-hook (delq 'eshell-reset-after-proc eshell-kill-hook)))
+  (eshell-reset-after-proc status)
   (run-hook-with-args 'eshell-kill-hook proc status))
 
 (defun eshell-proc-initialize ()
@@ -133,11 +135,7 @@
 ; (define-key eshell-command-map [(control ?z)]  'eshell-stop-process)
   (define-key eshell-command-map [(control ?\\)] 'eshell-quit-process))
 
-;; This used to be on `eshell-kill-hook', which calls its functions
-;; with two arguments.  Nowadays we call it directly in
-;; `eshell-kill-process-function', but in case anyone still has it
-;; on `eshell-kill-hook', _proc has to stay.
-(defun eshell-reset-after-proc (_proc status)
+(defun eshell-reset-after-proc (status)
   "Reset the command input location after a process terminates.
 The signals which will cause this to happen are matched by
 `eshell-reset-signals'."


reply via email to

[Prev in Thread] Current Thread [Next in Thread]