Allow an inf-elixir buffer to use IEx's open command, opening the term given in an Emacs buffer. This is currently done by setting the ELIXIR_EDITOR in the inf-elixir buffer, defaulting to emacsclient --no-wait +__LINE__ __FILE__.
The Downside
The problem with this approach is, essentially, emacsclient. In order for this to work correctly, the user must have emacsclient in their $PATH. Also, the fact that this functionality relies on an external program makes it rather hard to test. I really wanted a solution that used something like find-file under-the-hood, but I can't seem to find any way to do that.
In Conclusion
I'm going to leave this PR up for a couple of days to see if anyone has any ideas on how this could be more elegantly implemented.
Allow an inf-elixir buffer to use IEx's
open
command, opening the term given in an Emacs buffer. This is currently done by setting theELIXIR_EDITOR
in the inf-elixir buffer, defaulting toemacsclient --no-wait +__LINE__ __FILE__
.The Downside
The problem with this approach is, essentially,
emacsclient
. In order for this to work correctly, the user must haveemacsclient
in their$PATH
. Also, the fact that this functionality relies on an external program makes it rather hard to test. I really wanted a solution that used something likefind-file
under-the-hood, but I can't seem to find any way to do that.In Conclusion
I'm going to leave this PR up for a couple of days to see if anyone has any ideas on how this could be more elegantly implemented.