Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs positions sometimes out of sync #51

Open
thoni56 opened this issue Mar 3, 2020 · 1 comment
Open

Emacs positions sometimes out of sync #51

thoni56 opened this issue Mar 3, 2020 · 1 comment
Labels
bug emacs Anything that has to do with using c-xref from Emacs investigation

Comments

@thoni56
Copy link
Owner

thoni56 commented Mar 3, 2020

In some cases positions in Emacs get out of sync. It "feels" like c-xref misses to update positions.

I've not yet established a pattern for this, but it often misses a couple of lines, never columns as far as I can remember.

I'm using magit which might sometimes refresh files in the background, e.g. due to command line checkouts and the like. Maybe this is a problem... I don't know enough about the elisp code at this point to start debugging this.

A full, or even fast, update of tags seems to fix the problem.

So possible ideas:

  • file updates in the background goes unnoticed
  • buffer refreshs goes unnoticed
  • mixed line terminations in the file screw this up (not likely since an update fixes it)
  • ...
@thoni56 thoni56 added bug emacs Anything that has to do with using c-xref from Emacs investigation labels Mar 3, 2020
@thoni56
Copy link
Owner Author

thoni56 commented Mar 8, 2020

Hmm, some thing is not making sense...

When I experience this offset and move down to the real position and hit F6 (push), if the definition is in another file, then I get to the definition, but with the same offset as I had in the first file. And all the other locations are also off, except for the one I now pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug emacs Anything that has to do with using c-xref from Emacs investigation
Projects
None yet
Development

No branches or pull requests

1 participant