Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use this to verify a function I'd like to advise? #65

Open
hrehfeld opened this issue Mar 8, 2023 · 1 comment
Open

Can I use this to verify a function I'd like to advise? #65

hrehfeld opened this issue Mar 8, 2023 · 1 comment

Comments

@hrehfeld
Copy link

hrehfeld commented Mar 8, 2023

Can I use this to verify a function I'd like to advise?

The idea would be that my advice fails if the function changes. Basically, can I validate source form somehow without patching it?

@raxod502
Copy link
Member

Sure, you can just copy the function definition and replace defun with el-patch-defun. It's a patch, but the patch is a no-op because you haven't changed the definition. Running el-patch-validate-all will report an error if the definition has changed since you created the patch. Is that what you're looking for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants