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

Fix/etags moves point #64

Merged
merged 4 commits into from
Aug 25, 2015
Merged

Conversation

joddie
Copy link
Contributor

@joddie joddie commented Aug 25, 2015

I've found that drupal-mode's etags integration sometimes causes point to jump around in the current file. This seems to be because find-file-no-select returns the existing, current buffer if the file in which a tag is located is already open. Adding a save-excursion fixes the issue.

arnested and others added 4 commits March 12, 2014 14:36
With eldoc enabled, this function could move point unexpectedly to the
end of line when point was on the *definition* of anything listed in the
TAGS file.  (This is due to the `find-tag-noselect`, which can return the
already-open buffer for a given tag's file, if one exists).

Adding a `save-excursion` around the `with-current-buffer` fixes this bug.
@arnested
Copy link
Owner

Sounds very like. I'll merge it right away.

arnested added a commit that referenced this pull request Aug 25, 2015
@arnested arnested merged commit 708f318 into arnested:develop Aug 25, 2015
@joddie
Copy link
Contributor Author

joddie commented Aug 25, 2015

Thanks!

@arnested
Copy link
Owner

I'm the one thanking!

@joddie joddie deleted the fix/etags-moves-point branch September 6, 2015 07:22
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

Successfully merging this pull request may close these issues.

2 participants