drym-org / symex.el

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

Remove hard dependency on undo-tree. #64

Closed devcarbon-com closed 1 year ago

devcarbon-com commented 1 year ago

Summary of Changes

Remove hard dependency on undo-tree.

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.)

countvajhula commented 1 year ago

With this change, what happens when you press u or C-r? Is it possible to still do undo/redo without exiting the hydra, e.g. by using built-in Emacs undo functionality?

Btw, for what it's worth, the hydra UI is considered deprecated. Even for vanilla Emacs users, the Evil interface is recommended since it is more robust and plays nicely with your existing config and keybindings (e.g. saving buffers, scrolling, etc. don't interfere with / dismiss the modal UI), and doesn't require you to be an actual Evil user. Have you tried using the evil option?

devcarbon-com commented 1 year ago

Good point, I just added undo-only and undo-redo introduced in Emacs 27.

Yep, I use the evil version all the time!

The idea behind this pull request was so that undo-tree doesn't get automatically installed when you install symex.

countvajhula commented 1 year ago

Perfect, thanks!