Skip to content

Commit

Permalink
Make Eclector use our native backquote
Browse files Browse the repository at this point in the history
eclector.reader:quasiquote is fine (a bit underoptimized but who
cares), but it's not available really early. The particular
problem I hit is that if we save macro names that are expanded
(see subsequent commit) we end up referring to the ECLECTOR.READER
package during startup, before eclector is loaded, causing problems.
  • Loading branch information
Bike committed Sep 26, 2023
1 parent f48af23 commit 1bd6078
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lisp/kernel/cmp/eclector-client.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@
(core::make-structure
name
(map-make-structure-arguments initargs)))

(defmethod eclector.reader:wrap-in-quasiquote
((client clasp-eclector-client-mixin) form)
(list 'core:quasiquote form))
(defmethod eclector.reader:wrap-in-unquote
((client clasp-eclector-client-mixin) form)
(list 'core::unquote form))
(defmethod eclector.reader:wrap-in-unquote-splicing
((client clasp-eclector-client-mixin) form)
(list 'core::unquote-splice form))

0 comments on commit 1bd6078

Please sign in to comment.