How can I locate the defadvice for an advised function in Emacs?

倖福魔咒の 提交于 2019-12-05 13:36:54

As far as I know there is no way to navigate to the location of a defadvice expression (I'd be delighted to be proved wrong).

This should presumably track it down:

M-x rgrep RET (defadvice 'beginning-of-defun RET *.el RET ~/.emacs.d/ RET

(or failing that, the site-lisp directory would be the next place to look)

You can also view the advice data structure like this (but this doesn't include the information you're looking for).

(ad-get-advice-info 'beginning-of-defun)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!