caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] merlin--phrase-goto
@ 2017-01-11  8:42 Kenichi Asai
  2017-01-11 12:18 ` Raphaël Proust
  0 siblings, 1 reply; 3+ messages in thread
From: Kenichi Asai @ 2017-01-11  8:42 UTC (permalink / raw)
  To: caml-list

When I open an OCaml file in Emacs with merlin mode and type C-c C-n
(for merlin-phrase-next), I get an error:

Wrong number of arguments: (lambda nil ...), 1

where (lambda nil ...) is the definition of merlin--phrase-goto
function in merlin.el.  When I look into merlin.el:

https://github.com/ocaml/merlin/blob/master/emacs/merlin.el

I see merlin--phrase-goto (at line 1683) accepts zero argument:

(defun merlin--phrase-goto ()
   ...)

but it is called from merlin-phrase-next (1692) and merlin-phrase-prev
(1698) with one argument as follows:

(merlin--phrase-goto 'next)
(merlin--phrase-goto 'prev)

Is this a bug?

Sincerely,

-- 
Kenichi Asai

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] merlin--phrase-goto
  2017-01-11  8:42 [Caml-list] merlin--phrase-goto Kenichi Asai
@ 2017-01-11 12:18 ` Raphaël Proust
  2017-01-12 12:56   ` Sébastien Hinderer
  0 siblings, 1 reply; 3+ messages in thread
From: Raphaël Proust @ 2017-01-11 12:18 UTC (permalink / raw)
  To: Kenichi Asai; +Cc: OCaml Mailing List

Hi,

On 11 January 2017 at 08:42, Kenichi Asai <asai@is.ocha.ac.jp> wrote:
> […]
>
> Is this a bug?

Your issue seems the same as https://github.com/ocaml/merlin/issues/606

Btw, the issue tracker on Github is where most Merlin problems are discussed.


Cheers,
-- 
______________
Raphaël Proust

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] merlin--phrase-goto
  2017-01-11 12:18 ` Raphaël Proust
@ 2017-01-12 12:56   ` Sébastien Hinderer
  0 siblings, 0 replies; 3+ messages in thread
From: Sébastien Hinderer @ 2017-01-12 12:56 UTC (permalink / raw)
  To: caml-list

Hi,

Many thanks for having pointed to the GitHub issue, Raphaël.

For information: Frédéric has fixed the problem yesterday.

Tu use his fix,:

opam pin add merlin
git://github.com/the-lambda-church/merlin.git#merlin-next

Sébastien.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-12 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-11  8:42 [Caml-list] merlin--phrase-goto Kenichi Asai
2017-01-11 12:18 ` Raphaël Proust
2017-01-12 12:56   ` Sébastien Hinderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).