From rsaccon@gmail.com Wed Nov 14 12:14:45 2007 From: Roberto Saccon To: textmate@lists.macromates.com Subject: Re: [TxMt] TMTOOLS & Ctrl-Esc (gear menu) Date: Wed, 14 Nov 2007 10:14:46 -0200 Message-ID: In-Reply-To: <169DE39E-1E91-4886-AC74-427731E27247@eva.mpg.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4960294868844462733==" --===============4960294868844462733== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit thanks again for the helpful clarification > > > > 1) after having parsed compiler error output, highlight the region of > > the error and move caret there > > Well, AFAIK the error output of Erlang is something like: > > ./test.erl:5: syntax error before:foo > > I suppose you will output the error messages in an HTML window. To > jump to a given file and a given line you can use TextMate's URL scheme. > > see at http://macromates.com/textmate/manual/ > using_textmate_from_terminal section 21.2 > > Each error would be written as an HTML link à la: test.erl:5: syntax error > before:foo > Great, that wil do the job ! > You wrote "...highlight the region of the error ...". This would mean > you have a specific range. But AFAIK one only gets the line number. > Or am I wrong? > Oh, consider a line as a region > > 2) source code manipulation such as refactoring, based on AST > > Which TMTOOLS function do you would need for that? I am still looking for it, a function which lets me replace text at given line and position (as position I have token column number, but that can easily be transformed to a regexp) regards -- Roberto Saccon http://rsaccon.com --===============4960294868844462733==--