Version 0.1 of package Advice-Patch has just been released in GNU ELPA.
You can now find it in M-x list-packages RET.

Advice-Patch describes itself as:

  =============================================
  Use patches to advise the inside of functions
  =============================================

More at https://elpa.gnu.org/packages/advice-patch.html

## Summary:

  This package builds on `advice-add' but instead of letting you add code
  before/after/around the body of the advised function, it lets you directly
  patch the inside of that function.

  This is inspired from [el-patch](https://github.com/raxod502/el-patch),
  but stripped down to its barest essentials.  `el-patch' provides many more
  features, especially to be notified when the advised function is modified
  and to help you update your patches accordingly.

  Beware: this can eat your lunch and can misbehave unexpectedly in many
  legitimate cases.

  Use it is as follows:

      (advice-patch 'foo (my new code)
                    [(some old code)
                     (some (other version) (of the old) code))])

## Recent NEWS:

[Not provided 🙁]

Reply via email to