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)
- ...
In some cases positions in Emacs get out of sync. It "feels" like
c-xrefmisses 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
magitwhich 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: