Skip to content

Prevent haskell-doc-mode to hang Emacs during user input waiting #1116

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

Merged
merged 2 commits into from
Jan 30, 2016
Merged

Prevent haskell-doc-mode to hang Emacs during user input waiting #1116

merged 2 commits into from
Jan 30, 2016

Conversation

geraldus
Copy link
Contributor

Fixes #820.

(find-file file)
(cl-return))))
do
(haskell-mode-set-interactive-prompt-state)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to be wrapped in elisp version of bracket that is unwind-protect.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, great! Likely I should use unwind-protect everywhere, shouldn't I?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@geraldus
Copy link
Contributor Author

Well, y-or-n-p also hangs Emacs when doc-mode is turned on. I'll finish this tomorrow.

@geraldus
Copy link
Contributor Author

I wish I had some wrapper around unwind protect haskell-mode-set-interactive-prompt at the beginning of this PR :D

Please review, I also want to add few simple tests before merge.

Prevent `haskell-doc-mode` to hang Emacs during interactive user prompts.
@geraldus
Copy link
Contributor Author

If this will pass Travis I'm done.

gracjan added a commit that referenced this pull request Jan 30, 2016
Prevent haskell-doc-mode to hang Emacs during user input waiting
@gracjan gracjan merged commit 42b1db5 into haskell:master Jan 30, 2016
@geraldus geraldus deleted the gman/fix-820 branch January 30, 2016 21:11
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

Successfully merging this pull request may close these issues.

2 participants