[erlang-questions] API Design/Documentation

mats cronqvist masse@REDACTED
Fri Oct 24 01:11:27 CEST 2008


Geoff Cant <nem@REDACTED> writes:

> As a convenience matter it'd be nice if the shell would spit out
> function documentation if you try to tab complete on arguments. i.e.

  distel has something along those lines;

1> otp_doc:sig(erla, sete).
["erlang:setelement(Index, Tuple1, Value) -> Tuple2"]

  works by parsing the html docs on the fly. note that you don't have
  to type the whole thing to get a match.

  the module is used to do tab completion in emacs, but it doesn't
  depend on anything else in distel. available free of charge at
  http://code.google.com/p/distel.

  adding tab completion of args in the shell would be pretty easy,
  although i personally don't feel enough pain to make it happen.

  mats



More information about the erlang-questions mailing list