Skip to content

el-patch 1.1

Choose a tag to compare

@raxod502 raxod502 released this 12 Feb 01:28
· 147 commits to main since this release

Added

  • Patches can now be defined for more types of objects:
    • el-patch-defvar
    • el-patch-defcustom
    • el-patch-define-minor-mode
  • New function el-patch-get to get a patch definition by name.
  • Objects can now be renamed in a patch using el-patch-swap on the
    name (#4).
  • Actual description in the Commentary section of el-patch.el
    (#5).
  • MIT license
    (melpa/melpa#4512).
  • Arbitrary functions can be run (to load patches) by adding things to
    the new hook el-patch-pre-validate-hook. Cleanup can then be done
    in el-patch-post-validate-hook.

Changed

  • It is no longer necessary to specify el-patch-feature due to
    improvements in the el-patch patching mechanism.
  • The functions el-patch-ediff-patch, el-patch-ediff-conflict, and
    el-patch-unpatch now take an object name and definition type
    rather than a patch definition (or function name in the case of
    el-patch-unpatch). Interactive usage has not changed.

Deprecated

  • As a result of the aforementioned improvements, el-patch-feature
    is now a deprecated no-op.

Fixed

  • el-patch-splice previously acted the same as el-patch-wrap. Now
    it functions correctly.
  • The patch definition macros now have their docstrings colored
    correctly by the syntax highlighter (by specifying (declare (doc-string N))).
  • .dir-locals.el is now ignored when validating patches
    (#2).