Ahh, cool. Is that somewhere in the Racket distribution, or do I need to copy it? --Mitch<br><br><div class="gmail_quote">On Thu, Nov 18, 2010 at 2:29 PM, Vincent St-Amour <span dir="ltr"><<a href="mailto:stamourv@ccs.neu.edu">stamourv@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Guillaume Marceau wrote a script for that:<br>
<a href="http://lists.racket-lang.org/users/archive/2003-November/003715.html" target="_blank">http://lists.racket-lang.org/users/archive/2003-November/003715.html</a><br>
<br>
Vincent<br>
<br>
<br>
At Thu, 18 Nov 2010 13:49:23 -0500,<br>
Mitchell Wand wrote:<br>
><br>
> [1 <multipart/alternative (7bit)>]<br>
> [1.1 <text/plain; ISO-8859-1 (7bit)>]<br>
<div><div></div><div class="h5">> It took me about 45 minutes, but I found the following bit of trivia<br>
> helpful:<br>
><br>
> To convince etags to look for definitions in .rkt files do the following:<br>
><br>
> Create a file ~/.ctags , and add to it the following line:<br>
><br>
> --langmap=scheme:.rkt<br>
><br>
><br>
> This will cause ctags/etags to recognize .rkt files as scheme files, and<br>
> apply etags' parsing rules to find definitions.<br>
><br>
> OTOH:<br>
><br>
> (1) According to <a href="http://ctags.sourceforge.net/EXTENDING.html" target="_blank">http://ctags.sourceforge.net/EXTENDING.html</a> , you can add<br>
> a new language to ctags/etags by writing something like<br>
><br>
> --langdef=swine<br>
> --langmap=swine:.swn<br>
> --regex-swine=/^def[ \t]*([a-zA-Z0-9_]+)/\1/d,definition/<br>
><br>
> Has anybody done this for Racket ? There are also fancier things you<br>
> can do; see the EXTENDING page for details.<br>
><br>
> (2) Is there some better tool I should be using? I want to do things<br>
> like change a name across a whole set of files.<br>
><br>
> --Mitch<br>
</div></div>> [1.2 <text/html; ISO-8859-1 (quoted-printable)>]<br>
><br>
> [2 <text/plain; us-ascii (7bit)>]<br>
<div><div></div><div class="h5">> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
<br>
</div></div></blockquote></div><br>