HI Lex,

thanks for the quick response.

Your example is almost as it, the only difference, and I don't know if it 
matters but my structure definition is as follow


IN FILE toto.h
typedef struct
{
int blah;
int foo;
}myStruct_t;



IN FILE toto.c
#include "toto.h"

void TestFct(void)
{
    myStruct_t    a;

    a-> (here I would expect to see blah and foo being suggested by Geany) 
}


For the platform I'm on Linux Ubuntu 10.04 and using Geany 1.22

Thanks in advance


________________________________
 From: Lex Trotman <ele...@gmail.com>
To: Sebastien Berthiaume <a1800b...@yahoo.com>; Geany general discussion list 
<geany@uvena.de> 
Sent: Thursday, October 4, 2012 8:04 AM
Subject: Re: [Geany] Geany autocompletion
 




On 4 October 2012 21:19, Sebastien Berthiaume <a1800b...@yahoo.com> wrote:

Hi,
>
>
>I was wondering, I'm trying to set the autocompletion in Geany and I have some 
>problem.
>
>
>I tryied to generate a tag file using the command:
>
>
>geany -g [file.tags] [*.c *.h] (from my source folder)
>
>
>Then I load it using the "Menu-Tools-Load Tags" command.
>
>
>But, it does not display any possiblities when I type [myStruct->] other than 
>the one found in the local file...
>
>
>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.
>
>
>Can someone explain me why, I can't get the autocompletion to look for the 
>definitions and offer me choices?

Just to be sure, you have something like

struct fred {
  int blah; 
  int foo;
};

in a file that is fed to the geany -g mytags.c.tags 

You have loaded the mytags.c.tags file automatically or manually ( and 
menu->help->debug messages has a message saying it loaded)

In some file (other than the one above) you have

struct fred b;

when you type b-> you don't get blah and foo as options?

You have not said what version or platform you are using, but the above works 
on the current git version on Linux.

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.

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.

Cheers
Lex


>
>Thanks
>
>
>(Sorry for my english, I'm a french speaker!)
>_______________________________________________
>Geany mailing list
>Geany@uvena.de
>https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
>
_______________________________________________
Geany mailing list
Geany@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany

Reply via email to