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 #1185] Move ask-for directory code after ess-r-mode startup #1186

Merged
merged 2 commits into from
Feb 13, 2022

Conversation

vspinu
Copy link
Member

@vspinu vspinu commented Feb 3, 2022

We have a problem with #1185

The asking for the directory happens before the inferior-ess-r-mode is installed into the buffer, which means the mode hooks that set project-find-directory have not run yet. Let binding around the call to inferior-ess as it currently is not good because of the warning in #1185.

The proposed solution is not ideal either because the functions which are run in the mode-hook don't see the new default-directory. I am not sure if this is acceptable.

All other ways to fix this I can think of are rather hacky 🤔

@vspinu vspinu force-pushed the ask-for-dir-after-ess-inf branch from 30d574c to 347d3b4 Compare February 13, 2022 19:09
  .. and make it to take precedence over ess-startup-directory-function.

  Document the usage.
@vspinu vspinu force-pushed the ask-for-dir-after-ess-inf branch from 347d3b4 to f3c196d Compare February 13, 2022 19:10
@vspinu vspinu merged commit 2e1809a into master Feb 13, 2022
@vspinu vspinu deleted the ask-for-dir-after-ess-inf branch February 13, 2022 19:13
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.

1 participant