Support universal arg for debugging in clojure and elisp#56
Support universal arg for debugging in clojure and elisp#56markgdawson wants to merge 1 commit intodrym-org:mainfrom
Conversation
|
That does sound useful. One thing to consider though is that in Evil, typically the universal argument is expected to be a So it's not inconceivable that we'd want to support How about using a distinct keybinding for this, e.g. |
|
not related to symex, but what is "universal arg", i've never heard this term |
|
This explains it better then I could: |
|
i wasn't aware of that count and prefix used the same function argument. In that case the |
|
@countvajhula This might not matter at this point, but you can actually handle both count and prefix arguments in the same function separately. Here is a little function that illustrates that (I use it to remind myself sometimes which is which lol): When you call In other words, you can distinguish the universal prefix argument (even without funky methods) by checking the type of the raw prefix Thus, you can support both types of functionality. Edit: though not that I actually looked at the diffs for this PR, I can definitely say that we would want to redo it (in addition to adapting it to 2.0) so that it is clear the prefix arg is generic. |
Summary of Changes
In elisp and clojure, the universal arg evaluates an expression in a debug mode. These are pretty handy and universal arg isn't currently used for these commands in symex. So I've added it here in the hope that we think it's a good idea.
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.)