Swapped arguments in patch validation?
mz-pdm opened this issue · 3 comments
mz-pdm commented
I define a patch like this:
(defun foo (x)
(+ x 1))
(el-patch-defun foo (x)
(+ x (el-patch-swap 1 2)))
The patch works fine, but when I run M-x el-patch-validate
on the patch, I receive the error "el-patch--classify-definition-type: Unexpected definition type foo". It seems that the function name and definition type are swapped somewhere.
BTW, el-patch is a great tool. I thought about writing a tool with a similar purpose and I'm glad it's already done :-). Thank you!
raxod502 commented
Thanks for reporting this. I will look into it shortly.
raxod502 commented
I believe the issue should be fixed now. Does it work for you?
mz-pdm commented
Yes, it works for me now. Thank you for the fix.