From: Arne S. <arn...@gm...> - 2007-01-08 10:49:01
|
Am Montag, 8. Januar 2007 10:13 schrieb kla...@sd...: > As you already write: This is not an ECB-topic... > You can use your c-switch-to-header. To get the current symbol > in a fle from semantic is easy: `semantic-current-tag' returns > the current semantic-tag where point stays. Ah, that is quite interesting. > I do not know exactly what exactly you need and want to do... > If yu write me a detailed recipe of your goal then i can write > you a short function at weekend... > the recipe should be as follows: > 1. Point stays in buffer B in window W of ECB > 2. calling c-switch-to-header would now need WHAT?? > 3. ... Recipe: Current location is buffer A in some window W of ECB. The buffer=20 contains foo.h. My point/cursor is on declaration of function void=20 foo::bar(). I hit F3 and c-switch-header gets called. This will switch the= =20 window W to buffer B containing foo.cc. I now want the cursor in this buffe= r=20 to jump to the local definition of void foo::bar(), which is supposed to be= =20 available as a semantic tag. (i.e. some semantic-jumpto-tag function) Hope that helps in my problem description. This way one can select a=20 declaration and jump to its implementation in the .cc file. Arne =2D-=20 Dipl.-Inform. Arne Schmitz Phone +49 (0)241 80-21817 Computer Graphics Group Fax +49 (0)241 80-22899 RWTH Aachen University http://www.rwth-graphics.de Ahornstrasse 55, 52074 Aachen, Germany |