Skip to content

Emacs 27 compatibility #20

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

Merged
merged 4 commits into from
Jun 11, 2019
Merged

Conversation

dgutov
Copy link
Contributor

@dgutov dgutov commented Jun 9, 2019

There are changes in Emacs master that change the calling convention of xref-show-xrefs-function and add xref-show-definitions-function.

@alexmurray
Copy link
Owner

Thanks - can you include either a comment in the code or something in the README.md as to where / how the new ivy-xref-show-defs function should be made use of for emacs 27?

@dgutov
Copy link
Contributor Author

dgutov commented Jun 11, 2019

Ah, sorry, I mistyped README instructions.

@dgutov
Copy link
Contributor Author

dgutov commented Jun 11, 2019

Should be good now.

@alexmurray alexmurray merged commit 3b49d33 into alexmurray:master Jun 11, 2019
@dgutov
Copy link
Contributor Author

dgutov commented Jun 11, 2019

@alexmurray Oh, and someone would need to update the use-package instructions, I guess. 🤷‍♂️

@alexmurray
Copy link
Owner

@dgutov ah thanks - I updated both actually in 1a35fc0 to do the right thing by consulting emacs-major-version

@dgutov
Copy link
Contributor Author

dgutov commented Jun 12, 2019

Not sure it's the right thing. Have you tried it? This way, in Emacs 27 other commands (e.g. xref-find-references and project-find-regexp) won't use ivy.

Some users might like it (I probably would), but it seems like a personal choice.

@alexmurray
Copy link
Owner

I am not running Emacs 27 - I just based it off your original recommendation in the README.md - can you explain a bit more what the change in behaviour is in Emacs 27 in this regard?

@dgutov
Copy link
Contributor Author

dgutov commented Jun 12, 2019

What Emacs 27 did:

  • Change the calling convention of xref-show-xefs-function (the first argument is now a function, so we can support revert-bufer).
  • Split its job into two variables. One is responsible for showing the results of xref-find-definitions, the other (the old one) - for all other uses.

@alexmurray
Copy link
Owner

So I have finally upgraded to emacs 27 - I changed the instructions to recommend enabling this for both of the new xref interfaces in Emacs 27. See 3d4c35f.

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