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

On initial install, prompt for compilation happens twice. #3

Open
dieggsy opened this issue Dec 4, 2017 · 2 comments
Open

On initial install, prompt for compilation happens twice. #3

dieggsy opened this issue Dec 4, 2017 · 2 comments
Labels

Comments

@dieggsy
Copy link
Owner

dieggsy commented Dec 4, 2017

This is because term-mode-hook seems to be running twice, which you can confirm in emacs -q with:

(add-hook 'term-mode-hook (lambda () (message "TIME: %s" (format-time-string "%3N"))))

Then running M-x term (or ansi-term) and checking the *Messages* buffer, which shows two separate messages TIME: ... messages.

@dieggsy dieggsy added the wat label Dec 4, 2017
@dieggsy
Copy link
Owner Author

dieggsy commented Dec 4, 2017

huh, maybe this isn't a bug. weirdly, it shouldn't really matter - the second time around all the necessary files should already have been compiled.

@dieggsy
Copy link
Owner Author

dieggsy commented Dec 4, 2017

huh, maybe this isn't a bug. weirdly, it shouldn't really matter - the second time around all the necessary files should already have been compiled.

This probably is cause compilation-start is asynchronous, and the hook is run twice only milliseconds apart. So the second time around, it compilation probably still hasn't finished.

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

No branches or pull requests

1 participant