hylang / hy-mode

Hy mode for Emacs
GNU General Public License v3.0
189 stars 48 forks source link

Processes managed by name #77

Closed brandonwillard closed 5 years ago

brandonwillard commented 5 years ago

The last commit in this PR enables customized Hy shell buffers/processes, so, now, one can do

(flet ((hy-shell-get-process-name (&rest args) "Hy<testing>"))
  (run-hy))

and hy-mode will create a new, independent comint buffer and process using the name Hy<testing>.

ekaschalk commented 5 years ago

Let me know when you're ready for me to go through this or other changes you have.

brandonwillard commented 5 years ago

I've been running on this branch and it seems good so far, but I really want to get those tests in order.

Regardless, give it a try! There are a couple changes that should help with comint and internal Hy process issues like #78 (e.g. error handling with buffer/process cleanup, lazy-er internal process creation).

ekaschalk commented 5 years ago

I have put quite some new work into hy-mode.

If you are still using Hy you might be interested in checking it out, at least for me, the completion/doc lookup stuff is pretty solid now and many longstanding bugs should be resolved.

Closing this but if you have feedback don't hesitate to share.

brandonwillard commented 5 years ago

This PR wasn't about any particular bug/issue; it was a feature addition that allowed one to create independent inferior Hy sessions through distinct buffer/process naming. If I can find the time, I'll attempt to rebase onto your recent updates, but it's fine to close this until then.

ekaschalk commented 5 years ago

For that you will want to look at extending the hy-shell--with macro, run-hy, and modifying the couple functions under the Process Management outline in the shell file. I think everything else should fall into place with that.