From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "João Távora" <joaotavora@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Speeding up Flymake in emacs-lisp-mode
Date: Fri, 02 Nov 2018 10:25:11 -0400 [thread overview]
Message-ID: <jwvpnvna78d.fsf-monnier+Inbox@gnu.org> (raw)
In-Reply-To: <jjb1s8360bp.fsf@gmail.com> ("João Távora"'s message of "Fri, 02 Nov 2018 14:06:18 +0000")
>> (let ((proc async--eager-process))
>> (async--transmit-sexp proc ...)
>> (setq async--eager-process (async-start-process ...)))
>
> Yeah, but I don't see why I need to restart async--eager-process
> (assuming that's what async-start-process does).
Because the process that was in async--eager-process has been "consumed"
for the current sexp, so you need to create a new one which will be used
for the next request.
But indeed, if the problem is that async-start-process takes a long
*synchronous* time, then swapping the two won't help.
> Is async.el in ELPA?
Yes, and more specifically in GNU ELPA.
Stefan
prev parent reply other threads:[~2018-11-02 14:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-02 11:54 Speeding up Flymake in emacs-lisp-mode João Távora
2018-11-02 12:08 ` Stefan Monnier
2018-11-02 12:26 ` Noam Postavsky
2018-11-02 12:34 ` João Távora
2018-11-02 13:05 ` Stefan Monnier
2018-11-02 13:26 ` Noam Postavsky
2018-11-02 14:01 ` João Távora
2018-11-02 14:07 ` Noam Postavsky
2018-11-02 14:06 ` João Távora
2018-11-02 14:25 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvpnvna78d.fsf-monnier+Inbox@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=joaotavora@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.