merlin
merlin copied to clipboard
[BUG] type enclosing
in the merlin--type-enclosing-text function I made this change:
(types (merlin/call
"type-enclosing" "-position" position "-index" index
(when verbosity (cons "-verbosity" (format "%d" verbosity)
))))
as verbosity transitions from nil to integer and an int here causes a stringp elisp error in Messages but otherwise "no information" in the minibuffer.
I found this while trying to determine why there is a delay of one step when attempting to type-enclosing-go-up after the initial typing. It seems the type list returned by merlin/call "type-enclosing" runs type,1,2,3 ... doing a go-up changes it to 0,type,2,3. .. which does not alter the enclosing start/end. so that may be redundant I hesitate to call this a bug as there might be valid reasons for it. but it results in no apparent reaction from merlin for one input and maybe it could lead to TEOTWAWKI...