Khady / merlin-eldoc

Type and doc on hover for OCaml and Reason in emacs
GNU General Public License v3.0
43 stars 3 forks source link

*merlin-types* buffer pops up due to merlin-eldoc #30

Open cpitclaudel opened 5 years ago

cpitclaudel commented 5 years ago

Hi there,

Thanks for this neat package. I've noticed that when I put the point on e.g. a module, the large type signature sometimes (but not always) gets displayed in a side *merlin-types* buffer. This is fine when pressing C-c C-t explicitly, but wuite disruptive when prompted by eldoc. Am I doing anything wrong? is there a function I should put a breakpoint on to debug this?

Here's my config:

(setq-default
 merlin-eldoc-type-verbosity 'min
 merlin-eldoc-max-lines 1
 merlin-eldoc-occurrences nil)
Khady commented 5 years ago

I don't manage to reproduce this behavior. The function which does display the *merlin-types* buffer is merlin--type-display. And it is only called at one place in merlin-eldoc, when there is an active region. But even like this I don't manage to get the buffer to appear. Could you give a way to reproduce?

cpitclaudel commented 5 years ago

Thanks, I'll look at that function. I have trouble coming up with a reliable repro.

cpitclaudel commented 5 years ago

(To clarify, this is only a small annoyance compared to the awesomeness of this eldoc integration :+1:)