jwiegley / emacs-async

Simple library for asynchronous processing in Emacs
GNU General Public License v3.0
838 stars 68 forks source link

using async in org-download on mac osx #25

Closed binxboll closed 10 years ago

binxboll commented 10 years ago

I reported an issue related to emacs-async in the org-download issues forum: https://github.com/abo-abo/org-download/issues/7

We determined that the problem is likely not caused by org-download, but by the async package on which it depends.

When I try the example code from Issue #12, it works just fine:

(async-start
       (lambda ()
         (message "This is a test")
         (sleep-for 3)
         222)
       (lambda (result)
         (message "Async process done, result should be 222: %s"
                  result)))

Issue 12 seems to be connected to Windows 7. FWIW, I am running on Emacs on Mac OS X. Executable and package versions can be found in the above referenced org-download issue 7.

thierryvolpiatto commented 10 years ago

binxboll notifications@github.com writes:

I reported an issue related to emacs-async in the org-download issues forum: abo-abo/org-download#7

We determined that the problem is likely not caused by org-download, but by the async package on which it depends.

When I try the example code from Issue 12, it works just fine:

If you want somebody start working on this, please give reference url to the related issues (Don't know for John but personally I don't follow org-download and I have no ideas what it is).

Thanks.

Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997

binxboll commented 10 years ago

The link to the original report in the org-download project is: https://github.com/abo-abo/org-download/issues/7

org-download is a small add-on to emacs org mode that permits the quick insertion of images into org mode buffers. It depends on async.

There is currently an acceptable work-around to the problem, which is to use org-download.el uncompiled.

jwiegley commented 10 years ago

I am interested to start using org-download, so I'd be happy to work on this once I get around to have time to integrate.

thierryvolpiatto commented 10 years ago

binxboll notifications@github.com writes:

The link to the original report in the org-download project is: https://github.com/abo-abo/org-download/issues/7

Ok I got your code.

org-download is a small add-on to emacs org mode that permits the quick insertion of images into org mode buffers. It depends on async.

There is currently an acceptable work-around to the problem, which is to use org-download.el uncompiled.

Your async-start call seems incorrect.

BTW why don't you use async-start+shell-command instead of using directly start-process?

Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997

thierryvolpiatto commented 10 years ago

It seems non sense to use async-start+shell-command, use directly start-process. Closing, feel free to reopen if you need help.