Function: proced-sort-header
proced-sort-header is an interactive and byte-compiled function
defined in proced.el.gz.
Signature
(proced-sort-header EVENT &optional ARG)
Documentation
Sort Proced listing based on an attribute.
EVENT is a mouse event with starting position in the header line.
It is converted to the corresponding attribute key.
This command updates the variable proced-sort(var)/proced-sort(fun).
Prefix ARG controls sort order, see proced-sort-interactive.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/proced.el.gz
(defun proced-sort-header (event &optional arg)
"Sort Proced listing based on an attribute.
EVENT is a mouse event with starting position in the header line.
It is converted to the corresponding attribute key.
This command updates the variable `proced-sort'.
Prefix ARG controls sort order, see `proced-sort-interactive'."
(interactive (list last-input-event (or last-prefix-arg 'no-arg)))
(let* ((start (event-start event))
(obj (posn-object start))
col key)
(save-selected-window
(select-window (posn-window start))
(setq col (+ (if obj (cdr obj) (posn-point start))
(window-hscroll)))
(when (and (<= 0 col) (< col (length proced-header-line)))
(setq key (get-text-property col 'proced-key proced-header-line))
(if key
(proced-sort-interactive key arg)
(message "No sorter defined here."))))))