[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master dc63b59 132/187: Documentation tweaks; mention DEFAULT-DIR
From: |
Michael Albinus |
Subject: |
[elpa] master dc63b59 132/187: Documentation tweaks; mention DEFAULT-DIRECTORY |
Date: |
Wed, 30 Dec 2015 11:50:10 +0000 |
branch: master
commit dc63b59ee958a83ba196e7285388d405ccf1da26
Author: Mike Neilsen <address@hidden>
Commit: Mike Neilsen <address@hidden>
Documentation tweaks; mention DEFAULT-DIRECTORY
---
README.md | 17 +++++++++--------
async.el | 3 ++-
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index f34b2ab..bc764ba 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ The interface is intended to be very easy to use:
## async-start
async-start START-FUNC FINISH-FUNC
-
+
Execute START-FUNC (often a lambda) in a subordinate Emacs process. When
done, the return value is passed to FINISH-FUNC. Example:
@@ -40,7 +40,7 @@ done, the return value is passed to FINISH-FUNC. Example:
;; What to do when it finishes
(lambda (result)
(message "Async process done, result should be 222: %s" result)))
-
+
If FINISH-FUNC is `nil` or missing, a future is returned that can be inspected
using `async-get`, blocking until the value is ready. Example:
@@ -57,7 +57,7 @@ using `async-get`, blocking until the value is ready.
Example:
(async-get proc)))
If you don't want to use a callback, and you don't care about any return value
-form the child process, pass the `'ignore` symbol as the second argument (if
+from the child process, pass the `'ignore` symbol as the second argument (if
you don't, and never call `async-get`, it will leave ``*emacs*`` process
buffers
hanging around):
@@ -74,17 +74,18 @@ however, as an argument to `async-ready` or `async-wait`.
## async-start-process
async-start-process NAME PROGRAM FINISH-FUNC &rest PROGRAM-ARGS
-
+
Start the executable PROGRAM asynchronously. See `async-start`. PROGRAM is
passed PROGRAM-ARGS, calling FINISH-FUNC with the process object when done.
If FINISH-FUNC is `nil`, the future object will return the process object when
-the program is finished.
+the program is finished. Set DEFAULT-DIRECTORY to change PROGRAM's current
+working directory.
## async-get
async-get FUTURE
-
-Get the value from an asynchronously function when it is ready. FUTURE is
+
+Get the value from an asynchronously called function when it is ready. FUTURE
is
returned by `async-start` or `async-start-process` when its FINISH-FUNC is
`nil`.
@@ -92,7 +93,7 @@ returned by `async-start` or `async-start-process` when its
FINISH-FUNC is
async-ready FUTURE
-Query a FUTURE to see if the ready is ready -- i.e., if no blocking
+Query a FUTURE to see if its function's value is ready -- i.e., if no blocking
would result from a call to `async-get` on that FUTURE.
## async-wait
diff --git a/async.el b/async.el
index d44f14a..be9c04e 100644
--- a/async.el
+++ b/async.el
@@ -200,7 +200,8 @@ its FINISH-FUNC is nil."
PROGRAM is passed PROGRAM-ARGS, calling FINISH-FUNC with the
process object when done. If FINISH-FUNC is nil, the future
object will return the process object when the program is
-finished."
+finished. Set DEFAULT-DIRECTORY to change PROGRAM's current
+working directory."
(let* ((buf (generate-new-buffer (concat "*" name "*")))
(proc (let ((process-connection-type nil))
(apply #'start-process name buf program program-args))))
- [elpa] master aef3412 126/187: * async-bytecomp.el: emacs-24 indent., (continued)
- [elpa] master aef3412 126/187: * async-bytecomp.el: emacs-24 indent., Michael Albinus, 2015/12/30
- [elpa] master d990787 127/187: * async-bytecomp.el (package--compile): load async-bytecomp., Michael Albinus, 2015/12/30
- [elpa] master 2f28229 134/187: Use cl-incf and don't compile test file., Michael Albinus, 2015/12/30
- [elpa] master f1b0fc5 125/187: * async-bytecomp.el: Be quiet when compiling for elpa., Michael Albinus, 2015/12/30
- [elpa] master 914a284 124/187: * async-bytecomp.el: Fix callback., Michael Albinus, 2015/12/30
- [elpa] master 8bb0876 130/187: Marked up file and buffer names, Michael Albinus, 2015/12/30
- [elpa] master 8464261 128/187: Changed symbol markup from Lisp idiom to Markdown, Michael Albinus, 2015/12/30
- [elpa] master 64d862f 129/187: Marked up 'nil' throughout, Michael Albinus, 2015/12/30
- [elpa] master 0ddafcf 131/187: Merge pull request #41 from PhilHudson/master, Michael Albinus, 2015/12/30
- [elpa] master a96e6d4 141/187: Fix doctring (#46)., Michael Albinus, 2015/12/30
- [elpa] master dc63b59 132/187: Documentation tweaks; mention DEFAULT-DIRECTORY,
Michael Albinus <=
- [elpa] master 005714e 142/187: Don't run the loop when async-bytecomp-allowed-packages is nil., Michael Albinus, 2015/12/30
- [elpa] master bafc3fa 145/187: Allow setting async-bytecomp-get-allowed-pkgs to compile async all packages., Michael Albinus, 2015/12/30
- [elpa] master a921e5f 136/187: Use always the args 0 and force for byte-recompile-directory., Michael Albinus, 2015/12/30
- [elpa] master 3ba79b2 143/187: Use package--get-deps to get packages dependencies., Michael Albinus, 2015/12/30
- [elpa] master 021be6f 153/187: * dired-async.el: Remove now unused dired-async-be-async., Michael Albinus, 2015/12/30
- [elpa] master f44f8be 150/187: * README.md: Update infos for dired-async., Michael Albinus, 2015/12/30
- [elpa] master 1da6e8f 144/187: Don't use package--get-deps that doesn't handle non installed packages., Michael Albinus, 2015/12/30
- [elpa] master 40d4f78 154/187: New mode async-bytecomp-package-mode., Michael Albinus, 2015/12/30
- [elpa] master 348600d 138/187: Unbound async-byte-recompile-directory when reinstalling async., Michael Albinus, 2015/12/30
- [elpa] master 12235bd 156/187: * async-pkg.el: Update version number., Michael Albinus, 2015/12/30