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

Steve Vinoski vinoski@REDACTED
Fri Dec 20 15:18:26 CET 2013


I've confirmed there's a problem with the erlang-get-function-arity defun
in erlang.el that prevents imenu from recognizing this function.

--steve


On Fri, Dec 20, 2013 at 8:45 AM, Daniel Mauritzson <
daniel.mauritzson@REDACTED> wrote:

> No the indentation is correct, the problem I see is this:
> * If the function is exported it is not highlighted as the other exported
> functions
> * 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 <vinoski@REDACTED> wrote:
>
>>
>>
>>
>> On Thu, Dec 19, 2013 at 5:19 AM, Daniel Mauritzson <
>> daniel.mauritzson@REDACTED> 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/587615ca/attachment.htm>


More information about the erlang-bugs mailing list