jwiegley / emacs-async

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

Garbled output including "Loading vc-git..." in async process output. #10

Closed alexanderkjeldaas closed 10 years ago

alexanderkjeldaas commented 11 years ago

I am doing some jar-file processing in order to improve my java environment.

However, when doing this using emacs-async, I am getting a spurious "Loading vc-git..." in the middle of my evaluation output.

This seems pretty fragile.

thierryvolpiatto commented 11 years ago

alexanderkjeldaas notifications@github.com writes:

I am doing some jar-file processing in order to improve my java environment.

However, when doing this using emacs-async, I am getting a spurious "Loading vc-git..." in the middle of my evaluation output.

Probably you should pass something like this to child emacs:

(remove-hook 'find-file-hook 'vc-find-file-hook)

This seems pretty fragile.


Reply to this email directly or view it on GitHub: https://github.com/jwiegley/emacs-async/issues/10

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

alexanderkjeldaas commented 11 years ago

Was my reply eaten?

Thanks for the suggestion. It worked! However, this is not something the user of the library should be required to do. I think a better approach would be to have emacs-async ensure that the output is written atomically.

Btw, this seems to happen on outputs ~1.8M, and always on the same position. My feeling is that emacs-async is relying on an atomic write which is only atomic for "small" strings.

Alexander

On Tue, Jan 1, 2013 at 12:56 PM, Thierry Volpiatto <notifications@github.com

wrote:

alexanderkjeldaas notifications@github.com writes:

I am doing some jar-file processing in order to improve my java environment.

However, when doing this using emacs-async, I am getting a spurious "Loading vc-git..." in the middle of my evaluation output.

Probably you should pass something like this to child emacs:

(remove-hook 'find-file-hook 'vc-find-file-hook)

This seems pretty fragile.


Reply to this email directly or view it on GitHub: https://github.com/jwiegley/emacs-async/issues/10

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

— Reply to this email directly or view it on GitHubhttps://github.com/jwiegley/emacs-async/issues/10#issuecomment-11790335.