Skip to content

Commit

Permalink
Fix: hy-jedhy-update-imports fails when commented out import exists (#83
Browse files Browse the repository at this point in the history
)

* Replaced hy-symbol-mangle/unmangle to mangle/unmangle.

* Fix expression evaluation to be same behavior with other lisp-mode.

* Fix: hy-jedhy-update-imports fails when commented out import exists
  • Loading branch information
masatoi authored and ekaschalk committed Oct 3, 2019
1 parent 8699b74 commit e2d5fec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hy-jedhy.el
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ Not bound atm as this is temporary, run via M-x or bind yourself."
(goto-char (point-min))

(while (re-search-forward hy-shell--import-rgx nil t)
(let ((text (s-join " " (s-lines (hy--current-form-string)))))
(hy-shell--redirect-send-internal text)))
(-when-let (hy-form (hy--current-form-string))
(let ((text (s-join " " (s-lines hy-form))))
(hy-shell--redirect-send-internal text))))

(hy-shell--redirect-send-internal hy-jedhy--reset-namespace-code)))

Expand Down

0 comments on commit e2d5fec

Please sign in to comment.