<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>El 23/04/2007, a las 14:00, <A href="mailto:textmate-request@lists.macromates.com">textmate-request@lists.macromates.com</A> escribió:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="4" color="#000000" style="font: 14.0px Helvetica; color: #000000"><B>De: </B></FONT><FONT face="Helvetica" size="4" style="font: 14.0px Helvetica">Allan Odgaard <<A href="mailto:throw-away-1@macromates.com">throw-away-1@macromates.com</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="4" color="#000000" style="font: 14.0px Helvetica; color: #000000"><B>Fecha: </B></FONT><FONT face="Helvetica" size="4" style="font: 14.0px Helvetica">23 de abril de 2007 03:03:18 GMT+02:00</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="4" color="#000000" style="font: 14.0px Helvetica; color: #000000"><B>Para: </B></FONT><FONT face="Helvetica" size="4" style="font: 14.0px Helvetica">TextMate users <<A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="4" color="#000000" style="font: 14.0px Helvetica; color: #000000"><B>Asunto: </B></FONT><FONT face="Helvetica" size="4" style="font: 14.0px Helvetica"><B>Re: [TxMt] QuickOpen included files</B></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="4" color="#000000" style="font: 14.0px Helvetica; color: #000000"><B>Responder a: </B></FONT><FONT face="Helvetica" size="4" style="font: 14.0px Helvetica">TextMate users <<A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana">On 20. Apr 2007, at 20:59, Juan Falgueras wrote:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Verdana; min-height: 17.0px"><BR></P> <BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana">I have change the source of the list of paths for QuickOpen included files.<SPAN class="Apple-converted-space">  </SPAN>It works fine:</FONT></P> </BLOCKQUOTE><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Verdana; min-height: 17.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana">Thanks, seems to work fine here as well. Some comments:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Verdana; min-height: 17.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana"><SPAN class="Apple-converted-space"> </SPAN>• we should differ between <system> and "user" include paths</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>actually the script does consider <system> and "user" paths and get first the "user" path not looking for TM_HEADER..  when "user"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>if (!$header) {</DIV><DIV>  $line =~ /#\s*include\s*([<"])(.*?)[">]/;</DIV><DIV>  $local = $1;</DIV><DIV>  $header = $2;</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>if ($local eq '"') {</DIV><DIV>  $t = $ENV{'TM_DIRECTORY'};</DIV><DIV>  if (-f "$t/$header" ) {</DIV><DIV>    print "$t/$header";</DIV><DIV>    system("mate -r \"$t/$header\"");</DIV><DIV>    exit 0;</DIV><DIV>  }</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana"><SPAN class="Apple-converted-space"> </SPAN>• TM_HEADER_SEARCH_PATHS should default to the output from gcc/g++ (to not require user setup)</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>  I have thought about it but, when?  If you ask for echo | g++ -E -v -x c++ - and then analyze the output (with the A.Tomazos perl script, for example), you then don't want any TM_HEADER_SEARCH_PATHS, but instead, to call to the g++ compiler for this.  I've thought this must be slow, and the answer to the previous  query is near always the same.</DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana"><SPAN class="Apple-converted-space"> </SPAN>• search path could depend on whether we are in source.c or source.c++ (the former has a smaller search path)</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>yes.  The difference is (in my system):</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>C++</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN>/usr/include/c++/4.0.0</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN>/usr/include/c++/4.0.0/powerpc-apple-darwin8</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>/usr/include/c++/4.0.0/backward</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN>/usr/local/include</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN>/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN>/usr/include</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>/System/Library/Frameworks</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN>/Library/Frameworks</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>versus</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>C</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN>/usr/local/include</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN>/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN>/usr/include</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>/System/Library/Frameworks</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN>/Library/Frameworks</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have used the most frequently used C++  :)</DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana"><SPAN class="Apple-converted-space"> </SPAN>• additional search paths should be taken from the current Xcode project file, if any (and Xcode’s products build dir should also be a search path for frameworks)</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>oups!  don't use XCode, sorry.  I think it must be done asking XCode (via AS) or hacking the XCode project file... (complicated and dirty) :(</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana"><SPAN class="Apple-converted-space"> </SPAN>• need to handle framework inclusion, e.g. <Cocoa/Cocoa.h></FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>you are again wright:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN>% locate Cocoa.h</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN>/Developer/ADC Reference Library/documentation/Cocoa/Cocoa.html</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN>/Developer/ADC Reference <SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN>Library/documentation/Cocoa/Conceptual/CarbonCocoaDoc/Articles/CarbonInCocoa.html</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN>/Developer/ADC Reference Library/documentation/Cocoa/Conceptual/CarbonCocoaDoc/Articles/CarbonUIInCocoa.html</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/Cocoa.h</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/JavaEOCocoa.framework/Versions/A/Headers/EOCocoa.h</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/Cocoa.h</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/JavaEOCocoa.framework/Versions/A/Headers/EOCocoa.h</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/Cocoa.h</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>is not<SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN> found by this simple script and there are:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>% find /System/Library/Frameworks/ -iregex ".*\/Headers\/.*\.h" | wc -l</DIV><DIV>    2112</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>many.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It was not a problem for me since I am working in a UNIX standard programming way...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana"><SPAN class="Apple-converted-space"> </SPAN>• need to handle import as well as include (in the regexp)</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>is is easy to add it</DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Verdana; min-height: 17.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana">And if I understood Chris correctly, he’d like to optionally search under /Developer/SDKs/«chosen SDK».</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN>As far as I have understood this is included in your Frameworks plus XCode dirs expansion search</DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Verdana; min-height: 17.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Verdana" size="4" style="font: 14.0px Verdana">Are there other things we’d like to support?</FONT></P> </BLOCKQUOTE></DIV><BR><DIV><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN>(;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>