[erlang-bugs] Emacs-mode does not recognize functions with binary matching in the header.

Daniel Mauritzson <>
Fri Dec 20 14:45:51 CET 2013

No the indentation is correct, the problem I see is this:
* If the function is exported it is not highlighted as the other exported
* imenu does not recognize it (guess this could be a problem of imenu and
not erlang-mode)
* I'm also using edts and that shows the function as function1/nil instead
of function1/1 (an edts problem maybe or xref)

On the other hand I have no problem with tags for it.

On 20 December 2013 14:33, Steve Vinoski <> wrote:

> On Thu, Dec 19, 2013 at 5:19 AM, Daniel Mauritzson <
> > wrote:
>> I recently noticed that the emacs-mode does not recognize functions that
>> have binary matching in the header, like this:
>> function1(<<Bin/binary>>) ->
>> Bin.
>> I would guess that it is a problem with the regex that is used for
>> functions but my knowlage about regex in lisp is lacking.
> When you say "does not recognize" what exactly do you mean? Is the
> indentation wrong, or something else?
> --steve

Daniel Mauritzson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20131220/e6e25a99/attachment.html>

More information about the erlang-bugs mailing list