Function: eshell-debug-command

eshell-debug-command is a macro defined in esh-util.el.gz.

Signature

(eshell-debug-command KIND STRING &rest OBJECTS)

Documentation

Output a debugging message to *eshell last cmd* if debugging is enabled.

KIND is the kind of message to log (either form or process). If present in eshell-debug-command(var)/eshell-debug-command(fun), output this message; otherwise, ignore it.

STRING and OBJECTS are as format-message (which see).

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-util.el.gz
(defmacro eshell-debug-command (kind string &rest objects)
  "Output a debugging message to `*eshell last cmd*' if debugging is enabled.
KIND is the kind of message to log (either `form' or `process').  If
present in `eshell-debug-command', output this message; otherwise, ignore it.

STRING and OBJECTS are as `format-message' (which see)."
  (declare (indent 1))
  (let ((kind-sym (make-symbol "kind")))
    `(let ((,kind-sym ,kind))
       (when (memq ,kind-sym eshell-debug-command)
         (eshell-always-debug-command ,kind-sym ,string ,@objects)))))