aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTino Calancha2016-06-07 15:06:38 -0400
committerGlenn Morris2016-06-07 15:06:38 -0400
commitb7adc2f23787eb72015cd705b873e229db6a5049 (patch)
tree5c1df3fc379ff561e41d98d9b9cc41d4d6061c8e
parent62564a6ad2e897785c6cb1f84778814cfb4a9cd4 (diff)
downloademacs-b7adc2f23787eb72015cd705b873e229db6a5049.tar.gz
emacs-b7adc2f23787eb72015cd705b873e229db6a5049.zip
* lisp/simple.el (process-menu-mode, list-processes--refresh):
Include PID. (Bug#21725)
-rw-r--r--lisp/simple.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 3d25ec19ab2..6c309293bd4 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3765,6 +3765,7 @@ support pty association, if PROGRAM is nil."
3765(define-derived-mode process-menu-mode tabulated-list-mode "Process Menu" 3765(define-derived-mode process-menu-mode tabulated-list-mode "Process Menu"
3766 "Major mode for listing the processes called by Emacs." 3766 "Major mode for listing the processes called by Emacs."
3767 (setq tabulated-list-format [("Process" 15 t) 3767 (setq tabulated-list-format [("Process" 15 t)
3768 ("PID" 7 t)
3768 ("Status" 7 t) 3769 ("Status" 7 t)
3769 ("Buffer" 15 t) 3770 ("Buffer" 15 t)
3770 ("TTY" 12 t) 3771 ("TTY" 12 t)
@@ -3796,6 +3797,7 @@ Also, delete any process that is exited or signaled."
3796 (process-query-on-exit-flag p)) 3797 (process-query-on-exit-flag p))
3797 (let* ((buf (process-buffer p)) 3798 (let* ((buf (process-buffer p))
3798 (type (process-type p)) 3799 (type (process-type p))
3800 (pid (if (process-id p) (format "%d" (process-id p)) "--"))
3799 (name (process-name p)) 3801 (name (process-name p))
3800 (status (symbol-name (process-status p))) 3802 (status (symbol-name (process-status p)))
3801 (buf-label (if (buffer-live-p buf) 3803 (buf-label (if (buffer-live-p buf)
@@ -3831,7 +3833,7 @@ Also, delete any process that is exited or signaled."
3831 (format " at %s b/s" speed) 3833 (format " at %s b/s" speed)
3832 ""))))) 3834 "")))))
3833 (mapconcat 'identity (process-command p) " ")))) 3835 (mapconcat 'identity (process-command p) " "))))
3834 (push (list p (vector name status buf-label tty cmd)) 3836 (push (list p (vector name pid status buf-label tty cmd))
3835 tabulated-list-entries)))))) 3837 tabulated-list-entries))))))
3836 3838
3837(defun process-menu-visit-buffer (button) 3839(defun process-menu-visit-buffer (button)