johnmastro / trident-mode.el

Emacs minor mode for live Parenscript interaction
The Unlicense
76 stars 8 forks source link

Sly support #5

Open alejandrogallo opened 2 years ago

alejandrogallo commented 2 years ago

Hello!

I would need some support for sly, I could work on this and I wanted to ask if you would merge it. It should actually be quite straitghtforward, I compiled the following table of functions that you use from slime and swank and that are mostly directly translatable to sly.

slime sly exists?
slime-defun-at-point sly-defun-at-point NO
slime-highlight-edits-mode sly-highlight-edits-mode NO
slime-remove-edits sly-remove-edits NO
slime-selector-methods sly-selector-methods NO
slime-connected-p sly-connected-p YES
slime-current-package sly-current-package YES
slime-eval-async sly-eval-async YES
slime-expand-1 sly-expand-1 YES
slime-last-expression sly-last-expression YES
slime-mode sly-mode YES
slime-region-for-defun-at-point sly-region-for-defun-at-point YES
slime-sexp-at-point sly-sexp-at-point YES
slime-with-popup-buffer sly-with-popup-buffer YES
swank:eval-and-grab-output slynk:eval-and-grab-output YES

I would then make variables for every such function and functions to switch backends, like (setq trident-use-backend 'slime) and then the slime functions would be used.

johnmastro commented 2 years ago

Hey @alejandrogallo, I’d definitely be happy to merge support for Sly!