Function: mh-exec-cmd-quiet

mh-exec-cmd-quiet is a byte-compiled function defined in mh-e.el.gz.

Signature

(mh-exec-cmd-quiet RAISE-ERROR COMMAND &rest ARGS)

Documentation

Signal RAISE-ERROR if COMMAND with ARGS fails.

Execute MH command COMMAND with ARGS. ARGS is a list of strings. Return at start of mh-temp buffer, where output can be parsed and used. Returns value of call-process, which is 0 for success, unless RAISE-ERROR is non-nil, in which case an error is signaled if call-process returns non-0.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-e.el.gz
(defun mh-exec-cmd-quiet (raise-error command &rest args)
  "Signal RAISE-ERROR if COMMAND with ARGS fails.
Execute MH command COMMAND with ARGS. ARGS is a list of strings.
Return at start of mh-temp buffer, where output can be parsed and
used.
Returns value of `call-process', which is 0 for success, unless
RAISE-ERROR is non-nil, in which case an error is signaled if
`call-process' returns non-0."
  (set-buffer (get-buffer-create mh-temp-buffer))
  (erase-buffer)
  (let ((value
         (apply #'call-process
                (expand-file-name command mh-progs) nil t nil
                args)))
    (goto-char (point-min))
    (if raise-error
        (mh-handle-process-error command value)
      value)))