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

[bug] Global marks navigate to wrong file after killing buffer #1940

Open
marcus-quincy opened this issue Nov 16, 2024 · 0 comments
Open

[bug] Global marks navigate to wrong file after killing buffer #1940

marcus-quincy opened this issue Nov 16, 2024 · 0 comments

Comments

@marcus-quincy
Copy link

Issue type

  • Bug report

Environment

Emacs version: GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0)
Operating System: Arch Linux
Evil version: 1.15.0
Evil installation type: Guix package manager
Graphical/Terminal: X
Tested in a make emacs session (see CONTRIBUTING.md): Yes

Reproduction steps

  • Start Emacs
  • open fileA
  • open fileB
  • make a global-mark mM
  • kill the buffer of fileB
  • 'M (now from fileA)
  • This works as expected and takes to fileB after confirming with y
  • C-x C-f fileA
  • 'M Will navigate to the position in fileA

Expected behavior

Because M is a global mark it should always navigate to the same place.

Actual behavior

When killing and reopening buffers like this, it opens in the wrong buffer.

Further notes

Value of evil-markers-alist is as follows (CONTRIBUTING.md is equal to fileB in my reproduction steps)

((77 "/home/popska/sfs/proj/evil/CONTRIBUTING.md" . 225)
(40 . evil-backward-sentence-begin)
(41 . evil-forward-sentence-begin)
(123 . evil-backward-paragraph)
(125 . evil-forward-paragraph)
(39 . evil-jump-backward-swap)
(96 . evil-jump-backward-swap)
(60 . evil-visual-beginning)
(62 . evil-visual-goto-end)
(46 lambda nil
(let
(last-command)
(goto-last-change nil))))

`M navigates me to position 225 in the current buffer instead of CONTRIBUTING.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant