erl_tidy option to print to stdout

Aaron France <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <CAPbqTDoeW8TTMBfoEMZ6q5uRR9nEf=z=i3VTXp-Vgih-njapcQ@mail.gmail.com>
Hi all,

I've read the contribution rules and received some cursory guidance from
nox in IRC so I hope I don't awaken any wrath from the format.

I've added an option to erl_tidy to simply print to stdout. These may seem
a trivial thing to want to have in but my use-case is wanting to build
intermediary steps around erl_tidy and not simply replace the underlying
file.

Personally, I want to have this (and I am working on it now that I have
patched it in) available to erlang-mode in emacs. So that I can have a save
hook for formatting the code properly. Dealing with files is less than
stellar but dealing with the unixy stdin/out method is far nicer.

I have this set up on:
https://github.com/AeroNotix/otp/tree/feat/erl_tidy_print_to_stdout

I added the requisite source and added the docs for it in the right areas.

Regards,
Aaron

_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.