Function: proced-toggle-tree
proced-toggle-tree is an interactive and byte-compiled function
defined in proced.el.gz.
Signature
(proced-toggle-tree ARG)
Documentation
Toggle the display of the process listing as process tree.
With prefix ARG, display as process tree if ARG is positive, otherwise
do not display as process tree. Sets the variable proced-tree-flag.
The process tree is generated from the selected processes in the
Proced buffer (that is, the processes in proced-process-alist).
All processes that do not have a parent process in this list
according to their ppid attribute become the root of a process tree.
Each parent process is followed by its child processes.
The process tree inherits the chosen sorting order of the process listing,
that is, child processes of the same parent process are sorted using
the selected sorting order.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/proced.el.gz
(defun proced-toggle-tree (arg)
"Toggle the display of the process listing as process tree.
With prefix ARG, display as process tree if ARG is positive, otherwise
do not display as process tree. Sets the variable `proced-tree-flag'.
The process tree is generated from the selected processes in the
Proced buffer (that is, the processes in `proced-process-alist').
All processes that do not have a parent process in this list
according to their ppid attribute become the root of a process tree.
Each parent process is followed by its child processes.
The process tree inherits the chosen sorting order of the process listing,
that is, child processes of the same parent process are sorted using
the selected sorting order."
(interactive (list (or current-prefix-arg 'toggle)) proced-mode)
(setq proced-tree-flag
(cond ((eq arg 'toggle) (not proced-tree-flag))
(arg (> (prefix-numeric-value arg) 0))
(t (not proced-tree-flag))))
(proced-update)
(message "Proced process tree display %s"
(if proced-tree-flag "enabled" "disabled")))