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 compatibility with hy interpreter #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix compatibility issue with hy-mode@20190620
  • Loading branch information
guanyilun committed Sep 29, 2019
commit fa03e85c7d6f7e9ca2248453ecf551aec5e42b68
5 changes: 2 additions & 3 deletions ob-hy.el
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,12 @@ then create. Return the initialized session."
(error "No function available for running an inferior Hy"))
(save-window-excursion
(let* ((session (if session (intern session) :default))
(hy-buffer (org-babel-hy-session-buffer session))
(cmd org-babel-hy-command))
(hy-buffer (org-babel-hy-session-buffer session)))
(unless hy-buffer
(setq hy-buffer (org-babel-hy-with-earmuffs session)))
(let ((hy-shell-buffer-name
(org-babel-hy-without-earmuffs hy-buffer)))
(run-hy cmd))
(run-hy))
(setq org-babel-hy-buffers
(cons (cons session hy-buffer)
(assq-delete-all session org-babel-hy-buffers)))
Expand Down