Re: Emacs package: Local function named "get" highlighted like built-in functions

Jesper Louis Andersen <[email protected]> Sun, 29 Mar 2015 20:02:53 +0200
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CAGrdgiX459YR3z_B2_qkOSGEZXtUHL5GKeHXpFUnA2azLxVStA@mail.gmail.com>
On Sun, Mar 29, 2015 at 5:47 PM, Luis Gerhorst <
[email protected]> wrote:

> I'm using solarized-theme (https://github.com/bbatsov/solarized-emacs
> <http://github.com/bbatsov/solarized-emacs>) and as you can see in the
> screenshot the local function "get" is highlighted the same way built in
> functions from the "erlang" module are highlighted.
>

I have a guess as to why this happens. The get/1 function is defined in
erlang:get/1. It is used to look up values in the process dictionary. The
syntax highlighter doesn't understand that get/2 is defined locally in the
current module, so it thinks your call to get is to the underlying
'erlang:get/1', not to ?MODULE:get/2. And all problems stems from there.

-- 
J.

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs