Skip to content

Commit e2d5fec

Browse files
masatoiekaschalk
authored andcommitted
Fix: hy-jedhy-update-imports fails when commented out import exists (#83)
* 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
1 parent 8699b74 commit e2d5fec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hy-jedhy.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ Not bound atm as this is temporary, run via M-x or bind yourself."
9999
(goto-char (point-min))
100100

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

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

0 commit comments

Comments
 (0)