Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't jump to definition when function parameters contain a binary #17

Open
mprize opened this issue Jun 23, 2012 · 0 comments
Open

don't jump to definition when function parameters contain a binary #17

mprize opened this issue Jun 23, 2012 · 0 comments

Comments

@mprize
Copy link

mprize commented Jun 23, 2012

emacs+distel don't jump to function when the function parameters contain a binary. That's it.
debian testing,
emacs 23.4+1-3,
distel from git,
the simplest program:

-module(u2).

-export([save_test/0]).

save_test() ->
F1 = fun(Val) ->
save1(Val), % does not work
save1(now(), Val), % does not work
save2(Val), % works
save2(now(), Val), % works
save3(Val) % works
end,
L = [
<<"save_test1">>,
<<"save_test2">>,
save_test1,
save_test2
],
lists:foreach(F1, L).

save1(<<"save_test1">>) ->
error;
save1(<<"save_test2">>) ->
ok.

save1(Info, <<"save_test1">>) ->
error;
save1(Info, <<"save_test2">>) ->
ok.

save2(save_test1) ->
error;
save2(save_test2) ->
ok.

save2(Info, {<<"save_test1">>, true}) ->
error;
save2(Info, {<<"save_test2">>, false}) ->
ok.

save3({<<"save_test1">>, true}) ->
error;
save3({<<"save_test2">>, false}) ->
ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant