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

yas-maybe-load-snippet-buffer moves point every time I save a snippet #1146

Open
gsingh93 opened this issue Sep 14, 2022 · 0 comments
Open

Comments

@gsingh93
Copy link

I'm running this command:

emacs -Q -L ~/.emacs.d/elpa/yasnippet-20200604.246 --eval "(require 'yasnippet)"  ~/code/tmp/foo

The foo file looks like this:

# -*- mode: snippet -*-
# --
line1
line2

Whenever I modify the file and save it, no matter where point is it always jumps back to (point-min). I used profiler-start/profiler-report to track this down to a call to yas-maybe-load-snippet-buffer which is run as a hook on save.

Is this the intended behavior? If so, is there a way to change it? I'm on Emacs 28.2 on macOS.

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