Closed olnw closed 1 year ago
I think that's fine re:eval-definition
. As it is intended to evaluate an entire containing definition form (like a function definition or any top-level form), I think it could safely be considered "unsupported" UX from the point of view of the REPL which typically expects expressions as input one at a time. To confirm, I just tried eval-defun
in Emacs's built-in REPL (ielm
, which you can access from Symex via r
in an ELisp buffer), and that results in an error as well.
Making the UX consistent across Common Lisp modes is great. Thank you!
Summary of Changes
This means Symex functions can be used in the Sly/SLIME REPL. I have tested all relevant interactive functions with Sly and SLIME, and everything appears to work, except for
symex-evaluate-definition
in the SLIME REPL. It works inlisp-mode
buffers, but not in the REPL.Let's say my REPL looks like this, and the square brackets represent the point. In this case, I would get an error if I were to run
slime-eval-defun
.1However, evaluation is successful in the following examples.
Since this apparent bug affects
slime-eval-defun
, it would need to be fixed in SLIME's source. Since this isn't a Symex problem, it shouldn't affect whether this PR gets merged.1.
Public Domain Dedication
(Why: The freely released, copyright-free work in this repository represents an investment in a better way of doing things called attribution-based economics. Attribution-based economics is based on the simple idea that we gain more by giving more, not by holding on to things that, truly, we could only create because we, in our turn, received from others. As it turns out, an economic system based on attribution -- where those who give more are more empowered -- is significantly more efficient than capitalism while also being stable and fair (unlike capitalism, on both counts), giving it transformative power to elevate the human condition and address the problems that face us today along with a host of others that have been intractable since the beginning. You can help make this a reality by releasing your work in the same way -- freely into the public domain in the simple hope of providing value. Learn more about attribution-based economics at drym.org, tell your friends, do your part.)