Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use start-file-process and start-file-process-shell-command. #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions deferred.el
Original file line number Diff line number Diff line change
Expand Up @@ -741,36 +741,36 @@ deferred task and return the TIMEOUT-FORM."
(with-current-buffer buf (buffer-string))))

(defun deferred:process (command &rest args)
"A deferred wrapper of `start-process'. Return a deferred
"A deferred wrapper of `start-file-process'. Return a deferred
object. The process name and buffer name of the argument of the
`start-process' are generated by this function automatically.
`start-file-process' are generated by this function automatically.
The next deferred object receives stdout and stderr string from
the command process."
(deferred:process-gen 'start-process command args))
(deferred:process-gen 'start-file-process command args))

(defun deferred:process-shell (command &rest args)
"A deferred wrapper of `start-process-shell-command'. Return a deferred
"A deferred wrapper of `start-file-process-shell-command'. Return a deferred
object. The process name and buffer name of the argument of the
`start-process-shell-command' are generated by this function automatically.
`start-file-process-shell-command' are generated by this function automatically.
The next deferred object receives stdout and stderr string from
the command process."
(deferred:process-gen 'start-process-shell-command command args))
(deferred:process-gen 'start-file-process-shell-command command args))

(defun deferred:process-buffer (command &rest args)
"A deferred wrapper of `start-process'. Return a deferred
"A deferred wrapper of `start-file-process'. Return a deferred
object. The process name and buffer name of the argument of the
`start-process' are generated by this function automatically.
`start-file-process' are generated by this function automatically.
The next deferred object receives stdout and stderr buffer from
the command process."
(deferred:process-buffer-gen 'start-process command args))
(deferred:process-buffer-gen 'start-file-process command args))

(defun deferred:process-shell-buffer (command &rest args)
"A deferred wrapper of `start-process-shell-command'. Return a deferred
"A deferred wrapper of `start-file-process-shell-command'. Return a deferred
object. The process name and buffer name of the argument of the
`start-process-shell-command' are generated by this function automatically.
`start-file-process-shell-command' are generated by this function automatically.
The next deferred object receives stdout and stderr buffer from
the command process."
(deferred:process-buffer-gen 'start-process-shell-command command args))
(deferred:process-buffer-gen 'start-file-process-shell-command command args))

(defun deferred:process-gen (f command args)
"[internal]"
Expand Down