Skip to content

Commit

Permalink
workaround for hy-1.0a3
Browse files Browse the repository at this point in the history
  • Loading branch information
jethack23 committed Feb 2, 2022
1 parent df81486 commit 4429bfc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hy-jedhy.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"Text identifying successful startup of jedhy.")

(defconst hy-jedhy--reset-namespace-code
"(setv --JEDHY (jedhy.api.API :locals- (locals) :globals- (globals) :macros- --macros--))"
"(setv --JEDHY (jedhy.api.API :locals- (locals) :globals- (globals) :macros- __macros__))"
"Text to send to make Jedhy's namespace current.")

;;; Startup
Expand Down Expand Up @@ -149,13 +149,13 @@ Not bound atm as this is temporary, run via M-x or bind yourself."

(defun hy-jedhy--format-output-tuple (output)
"Format OUTPUT given as a tuple."
(unless (s-equals? "()" output)
(unless (s-equals? "(,)" output)
(->> output
(s-replace-all '(("'" . "")
(",)" . "") ; one element list case
("(" . "")
(")" . "")))
(s-split ", ")))) ; comma is a valid token so can't replace it
("(, \"" . "") ; one element list case
("\")" . "")))
(s-split "\" \"")
))) ; comma is a valid token so can't replace it

(defun hy-jedhy--format-describe-output (output)
"Converts escaped newlines to true newlines."
Expand Down

0 comments on commit 4429bfc

Please sign in to comment.