Skip to content

Emacs positions sometimes out of sync #51

@thoni56

Description

@thoni56

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)
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugemacsAnything that has to do with using c-xref from Emacsinvestigation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions