SLY: Fix sly-asdf-load-system with Guix SBCL packages.

master
Pierre Neidhardt 2020-12-03 13:42:00 +01:00
parent 2c1037087e
commit 67d058f0bc
2 changed files with 11 additions and 0 deletions

View File

@ -146,6 +146,7 @@ returns a string."
(point))))
(with-eval-after-load 'sly
(require 'patch-sly)
(advice-add 'sly-mrepl--insert-prompt :around #'ambrevar/sly-prepare-prompt)
(advice-add 'sly-mrepl-next-prompt :override #'ambrevar/sly-mrepl-next-prompt)

View File

@ -0,0 +1,10 @@
;; REVIEW: https://github.com/mmgeorge/sly-asdf/issues/33
(with-eval-after-load 'sly-asdf
(defun sly-asdf-load-system (&optional system)
"Compile and load an ASDF SYSTEM.
Default system name is taken from first file matching *.asd in current
buffer's working directory"
(interactive (list (sly-asdf-read-system-name)))
(sly-asdf-oos system 'load-op :force nil)))
(provide 'patch-sly)