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

Timers can run while Emacs is waiting for Pymacs #64

Open
calmofthestorm opened this issue Apr 10, 2020 · 1 comment
Open

Timers can run while Emacs is waiting for Pymacs #64

calmofthestorm opened this issue Apr 10, 2020 · 1 comment

Comments

@calmofthestorm
Copy link

I finally figured out a problem I've been having where Pymacs becomes unreliable in the presence of timers that call into it. This seems to occur because Emacs can run timers when waiting for the Pymacs process to respond, which leads to race conditions in the Pymacs buffer.

To work around this, don't call Pymacs from inside timers, or ensure that this will never happen while Emacs is waiting for a response from Pymacs. If your timer does not have strict timing requires but rather should run "occasionally", consider scheduling a new run and trying again later. See the docs on idle timers for an example.

@idnael
Copy link

idnael commented Dec 24, 2023

Hi. I'm also having a problem with emacs timers calling python code.
Can't find those examples you mentioned. Can you provide more information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants