unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* etags and functions that return structures!
@ 2007-04-24 12:55 A Soare
  2007-04-24 17:15 ` Eli Zaretskii
  2007-04-25 15:45 ` Francesco Potorti`
  0 siblings, 2 replies; 6+ messages in thread
From: A Soare @ 2007-04-24 12:55 UTC (permalink / raw)
  To: Emacs   Dev  [emacs-devel]

When we have a function that returns a structure with a name S, by searching the name of that structure (S), find-tag does not jump in all cases to structure's definiton, but to a function's definition that returns that structure.

I do not give here examples.

Just I wanted to make attention to you.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: etags and functions that return structures!
  2007-04-24 12:55 etags and functions that return structures! A Soare
@ 2007-04-24 17:15 ` Eli Zaretskii
  2007-04-25 15:45 ` Francesco Potorti`
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2007-04-24 17:15 UTC (permalink / raw)
  To: alinsoar; +Cc: emacs-devel

> From: A Soare <alinsoar@voila.fr>
> Date: Tue, 24 Apr 2007 14:55:59 +0200 (CEST)
> 
> When we have a function that returns a structure with a name S, by searching the name of that structure (S), find-tag does not jump in all cases to structure's definiton, but to a function's definition that returns that structure.

I think this depends on the order in which etags sees the struct and
the functions.

Anyway, when this happens, does "C-u M-." eventually finds the struct
definition?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: etags and functions that return structures!
@ 2007-04-24 19:04 A Soare
  2007-04-24 21:12 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: A Soare @ 2007-04-24 19:04 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Emacs   Dev  [emacs-devel]


> > When we have a function that returns a structure with a name S, by searching the name of that structure (S), find-tag does not jump in all cases to structure's definiton, but to a function's definition that returns that structure.
> 
> I think this depends on the order in which etags sees the struct and
> the functions.
> 
> Anyway, when this happens, does "C-u M-." eventually finds the struct
> definition?

No. It jumps to another function that returns the same structure, even there is the def. of the structure somewhere. 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: etags and functions that return structures!
  2007-04-24 19:04 A Soare
@ 2007-04-24 21:12 ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2007-04-24 21:12 UTC (permalink / raw)
  To: alinsoar; +Cc: emacs-devel

> From: A Soare <alinsoar@voila.fr>
> Cc: "Emacs   Dev  [emacs-devel]" <emacs-devel@gnu.org>
> Date: Tue, 24 Apr 2007 21:04:02 +0200 (CEST)
> 
> > > When we have a function that returns a structure with a name S, by searching the name of that structure (S), find-tag does not jump in all cases to structure's definiton, but to a function's definition that returns that structure.
> > 
> > I think this depends on the order in which etags sees the struct and
> > the functions.
> > 
> > Anyway, when this happens, does "C-u M-." eventually finds the struct
> > definition?
> 
> No. It jumps to another function that returns the same structure, even there is the def. of the structure somewhere. 

So you are saying that no matter how many times you press "C-u M-.",
Emacs _never_ gets to the struct definition?  If so, please post the
smallest test case you can come up with that shows this problem.

Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: etags and functions that return structures!
@ 2007-04-25 14:27 A Soare
  0 siblings, 0 replies; 6+ messages in thread
From: A Soare @ 2007-04-25 14:27 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Emacs   Dev  [emacs-devel]

> > From: A Soare <alinsoar@voila.fr>
> > Cc: "Emacs   Dev  [emacs-devel]" <emacs-devel@gnu.org>
> > Date: Tue, 24 Apr 2007 21:04:02 +0200 (CEST)
> > 
> > > > When we have a function that returns a structure with a name S, by searching the name of that structure (S), find-tag does not jump in all cases to structure's definiton, but to a function's definition that returns that structure.
> > > 
> > > I think this depends on the order in which etags sees the struct and
> > > the functions.
> > > 
> > > Anyway, when this happens, does "C-u M-." eventually finds the struct
> > > definition?
> > 
> > No. It jumps to another function that returns the same structure, even there is the def. of the structure somewhere. 
> 
> So you are saying that no matter how many times you press "C-u M-.",
> Emacs _never_ gets to the struct definition?  If so, please post the
> smallest test case you can come up with that shows this problem.
> 

Yes, emacs never touch that point.

I can't give example, because I do not have time to analyse the problem. Sorry.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: etags and functions that return structures!
  2007-04-24 12:55 etags and functions that return structures! A Soare
  2007-04-24 17:15 ` Eli Zaretskii
@ 2007-04-25 15:45 ` Francesco Potorti`
  1 sibling, 0 replies; 6+ messages in thread
From: Francesco Potorti` @ 2007-04-25 15:45 UTC (permalink / raw)
  To: alinsoar; +Cc: Emacs   Dev  [emacs-devel]

>When we have a function that returns a structure with a name S, by
>searching the name of that structure (S), find-tag does not jump in all
>cases to structure's definiton, but to a function's definition that
>returns that structure.

This should not happen.

>I do not give here examples.

Just to be sure, I just tried with some examples, and I was not able to
reproduce the problem you describe.  The range of possible combinations
is infinite, but the code is written so that what you describe does not
happen.

Eli Zaretskii:
>I think this depends on the order in which etags sees the struct and
>the functions.

No, it should not and, as far as I can see, it does not.

Unfortunately, I don't think that we can do anything without a test case
so, if someone is able to reproduce the problem, please report a test
case.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-04-25 15:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-24 12:55 etags and functions that return structures! A Soare
2007-04-24 17:15 ` Eli Zaretskii
2007-04-25 15:45 ` Francesco Potorti`
  -- strict thread matches above, loose matches on Subject: below --
2007-04-24 19:04 A Soare
2007-04-24 21:12 ` Eli Zaretskii
2007-04-25 14:27 A Soare

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).