<br><br><div class="gmail_quote">On 4 October 2012 21:19, Sebastien Berthiaume <span dir="ltr"><<a href="mailto:a1800bert@yahoo.com" target="_blank">a1800bert@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:10pt;font-family:times new roman,new york,times,serif"><div>Hi,</div><div><br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
I was wondering, I'm trying to set the autocompletion in Geany and I have some problem.</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">I tryied to generate a tag file using the command:</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">geany -g [file.tags] [*.c *.h] (from my source folder)</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">Then I load it using the "Menu-Tools-Load Tags" command.</div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
But, it
 does not display any possiblities when I type [myStruct->] other than the one found in the local file...</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">BUT, if I right click on my structure and go to "Go to tag definitions" it open the right files and show me the possibilities. Thus, I guess my tag file is ok.</div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
Can someone explain me
 why, I can't get the autocompletion to look for the definitions and offer me choices?</div></div></div></blockquote><div><br></div><div>Just to be sure, you have something like</div><div><br></div><div>struct fred {</div>
<div>  int blah; </div><div>  int foo;</div><div>};</div><div><br></div><div>in a file that is fed to the geany -g mytags.c.tags </div><div><br></div><div>You have loaded the mytags.c.tags file automatically or manually ( and menu->help->debug messages has a message saying it loaded)</div>
<div><br></div><div>In some file (other than the one above) you have</div><div><br></div><div>struct fred b;</div><div><br></div><div>when you type b-> you don't get blah and foo as options?</div><div><br></div><div>
You have not said what version or platform you are using, but the above works on the current git version on Linux.</div><div><br></div><div>All the above declarations must be top level for it to work, it is noted in the manual that it won't work for local declarations.</div>
<div><br></div><div>Finally you can't goto a declaration that is in a tag file, the tags information doesn't include the file the tag is from.</div><div><br></div><div>Cheers</div><div>Lex</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:10pt;font-family:times new roman,new york,times,serif"><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">Thanks</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">(Sorry for my english, I'm a french speaker!)</div></div></div>
<br>_______________________________________________<br>
Geany mailing list<br>
<a href="mailto:Geany@uvena.de">Geany@uvena.de</a><br>
<a href="https://lists.uvena.de/cgi-bin/mailman/listinfo/geany" target="_blank">https://lists.uvena.de/cgi-bin/mailman/listinfo/geany</a><br>
<br></blockquote></div><br>