Function: proced-format-args

proced-format-args is a byte-compiled function defined in proced.el.gz.

Signature

(proced-format-args ARGS)

Documentation

Format attribute ARGS.

Replace newline characters by "^J" (two characters).

Source Code

;; Defined in /usr/src/emacs/lisp/proced.el.gz
;; Proced assumes that every process occupies only one line in the listing.
(defun proced-format-args (args)
  "Format attribute ARGS.
Replace newline characters by \"^J\" (two characters)."
  (string-replace "\n" "^J"
                  (pcase-let* ((`(,exe . ,rest) (split-string args))
                               (exe-prop (if proced-enable-color-flag
                                             (propertize exe 'font-lock-face 'proced-executable)
                                           exe)))
                    (mapconcat #'identity (cons exe-prop rest) " "))))