drym-org / symex.el

An intuitive way to edit Lisp symbolic expressions ("symexes") structurally in Emacs
Other
271 stars 22 forks source link

symex-repl does not work with Sly #88

Closed olnw closed 1 year ago

olnw commented 1 year ago

Problem Description

Pressing r in the symex evil state should open the Sly REPL. Instead, I get a void function error. I am not too familiar with Sly, but I think this is due to sly-repl being deprecated in favour of sly-mrepl.

Relevant commits:

Steps to Replicate

  1. Add to example.el:
    
    (require 'package)
    (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
    (package-initialize)

(setq inferior-lisp-program "sbcl")

(use-package sly :ensure t)

(use-package symex :ensure t :custom (symex-common-lisp-backend 'sly) :config (symex-initialize) :bind ("s-;" . symex-mode-interface))


2. Run `emacs -Q --load example.el`

3. Run `M-x toggle-debug-on-error RET`

4. Visit a Common Lisp source file

5. Invoke Sly with `M-x sly RET`

6. Activate symex with `s-;`, then press `r`

7. View the backtrace:

Debugger entered--Lisp error: (void-function sly-repl) sly-repl() symex-repl-common-lisp() symex-repl() funcall-interactively(symex-repl) command-execute(symex-repl)


### System Details

$ uname -ro 6.1.14-200.fc37.x86_64 GNU/Linux

$ emacs --version GNU Emacs 30.0.50 Development version 4b3ccf3092ea on master branch; build date 2023-03-05. Copyright (C) 2023 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING.