Function: mh-exec-cmd-daemon
mh-exec-cmd-daemon is a byte-compiled function defined in mh-e.el.gz.
Signature
(mh-exec-cmd-daemon COMMAND FILTER &rest ARGS)
Documentation
Execute MH command COMMAND in the background.
If FILTER is non-nil then it is used to process the output
otherwise the default filter mh-process-daemon is used. See
set-process-filter for more details of FILTER.
ARGS are passed to COMMAND as command line arguments.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-e.el.gz
(defun mh-exec-cmd-daemon (command filter &rest args)
"Execute MH command COMMAND in the background.
If FILTER is non-nil then it is used to process the output
otherwise the default filter `mh-process-daemon' is used. See
`set-process-filter' for more details of FILTER.
ARGS are passed to COMMAND as command line arguments."
(with-current-buffer (get-buffer-create mh-log-buffer)
(mh-truncate-log-buffer))
(let* ((process-connection-type nil)
(process (apply #'start-process
command nil
(expand-file-name command mh-progs)
(mh-list-to-string args))))
(set-process-filter process (or filter 'mh-process-daemon))
process))