Function: proced-format-interactive

proced-format-interactive is an interactive and byte-compiled function defined in proced.el.gz.

Signature

(proced-format-interactive SCHEME &optional REVERT)

Documentation

Format Proced buffer using SCHEME.

When called interactively, an empty string means nil, i.e., no formatting. Set variable proced-format(var)/proced-format(fun) to SCHEME. With prefix REVERT non-nil revert listing.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/proced.el.gz
(defun proced-format-interactive (scheme &optional revert)
  "Format Proced buffer using SCHEME.
When called interactively, an empty string means nil, i.e., no formatting.
Set variable `proced-format' to SCHEME.
With prefix REVERT non-nil revert listing."
  (interactive
   (let ((scheme (completing-read "Format: "
                                  proced-format-alist nil t)))
     (list (if (string= "" scheme) nil (intern scheme))
           current-prefix-arg))
   proced-mode)
  ;; only update if necessary
  (when (or (not (eq proced-format scheme)) revert)
    (setq proced-format scheme)
    (proced-update revert)))