Skip to content

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