Another thing I could think of:
(defmacro defadvice (function args &rest body) `(progn (put ',(cadr args) 'source-position (cons byte-compile-current-file byte-compile-read-position)) (defadvice-old ,function ,args ,@body)))
- Examine
(symbol-plist <<name of advice>>) , as soon as you need it, it will have a position in the file of the file that the macro used.
user797257
source share