gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNU ELPA] Advice-Patch version 0.1


From: ELPA update
Subject: [GNU ELPA] Advice-Patch version 0.1
Date: Sun, 31 Mar 2024 05:03:44 -0400

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

[Prev in Thread] Current Thread [Next in Thread]