Hi,
Yes, semantic analysis will visit the tags it analyzes in order to
accurately calculate the scope while de-referencing symbols. It does
this in a couple places.
Emacs changes in version 23 made it so that save-excursion no longer
saved positions when you visit buffers programatically, which has caused
problems like this, though this is the first I've heard of this case.
Unfortunately, I think the current way the semantic functions are
organized makes this impossible to fix easily. That's because there is
a single function that will both visit a buffer then navigate to a location.
At the moment, any change i make would be speculative. It would be
useful if you could provide a simplified pair of files that would
exhibit this problem. Knowing it is related to completion should help
identify a minimal case.
Thanks
Eric
On 03/21/2012 02:31 PM, Nikolaus Demmel wrote:
> Hi,
>
> I noticed an issue with opened header files. Very often when I switch between a c++ header and source file I find that the point in the header file has move since I last looked at it. Specifically at least in one case it always moves to the beginning of the class definition. This very frustrating for a large file. I suspect that CEDET has something to do with it, maybe moving the point during some parsing / analysis or command execution, but I'm not 100% sure.
>
> Does this sound like something expected or easily explained / fixed?
>
> Cheers,
> Nikolaus
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Cedet-devel mailing list
> Cedet-devel@...
> https://lists.sourceforge.net/lists/listinfo/cedet-devel
>