Permalink
Browse files

the strategy for completion is this; try otp_doc first, since it's

  faster. if it comes up empty, xref should kick in. alas, otp_doc was
  signalling failure to find by returning {ok,[]} instead of {error,R}.


git-svn-id: https://distel.googlecode.com/svn/trunk@79 d5f8e727-742a-0410-b67d-dd739a6cc792
  • Loading branch information...
1 parent 6442312 commit 8398bcdeaeb10d73966c4fce56afca3ce21ea270 @massemanet committed Dec 17, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/otp_doc.erl
View
@@ -65,6 +65,7 @@ arguments(_Mod,_Fun) -> {ok,""}.
completions(What,M,F) ->
case get(What,M,F,"") of
no_html -> {error,no_html};
+ [] -> {error,not_found};
Ans -> {ok,Ans}
end.

0 comments on commit 8398bcd

Please sign in to comment.