-
Notifications
You must be signed in to change notification settings - Fork 347
Guard haskell-process-do-try-info
from non-strings
#601
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
Guard haskell-process-do-try-info
from non-strings
#601
Conversation
@deviant-logic: In elisp the usual protocol agreement is that functions are not called with arguments falling outside of their domain. So the proper solution is to fix So I would gladly merge changes to either Can you create such a pull request? |
haskell-process-do-try-info
from non-stringshaskell-process-do-try-info
from non-strings
@gracjan: I can fix On Sat, Apr 25, 2015 at 12:49 AM gracjan notifications@github.com wrote:
|
We should try to follow the usual practice of emacs lisp and that is
callers are responsible for providing argument of correct type.
Please fix haskell-mode-contextual-space when you have time. And please
look at haskell-ident-at-point as we had reports that it does not follow
its own documentation.
|
@gracjan: I can try to fix this, but I'm not sure where I should put that commit – a new PR, here, on #602? Also, a +1 for fixing the crash bug in |
Also note that |
The documentation mandates that `haskell-ident-at-point` return nil when there is no identifier at point; however, apparently, it instead returned `""` in that case at some point, and so some code made faulty assumptions based on that.
@gracjan, @deviant-logic: I submitted pull request #603, which fixes the behavior around Thinking again about whether |
If I understand correctly this was subsumed by #603, right? |
@antalsz: About |
haskell-process-do-try-info
will break process interaction if it isn't passeda string. This can happen when using
haskell-mode-contextual-space
andtyping a space after
::
. At least, it happened to me when I did it.