Skip to content

Commit

Permalink
Unadvice utility for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
regob committed Jan 20, 2025
1 parent b6d185d commit 8fc139c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lisp/lib/rb-hack.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
;;; rb-hack.el --- Utilities for hacking/debugging -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

;; By @xuchunyang https://emacs.stackexchange.com/a/24658/38136
(defun rb-advice-unadvice (sym)
"Remove all advices from symbol SYM."
(interactive "aFunction symbol: ")
(advice-mapc (lambda (advice _props) (advice-remove sym advice)) sym))

(provide 'rb-hack)

;;; rb-hack.el ends here

0 comments on commit 8fc139c

Please sign in to comment.