We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7463b8a commit 20abb35Copy full SHA for 20abb35
helpful.el
@@ -2245,6 +2245,15 @@ value is different."
2245
(not (eq (car orig-val-list)
2246
(symbol-value sym))))))
2247
2248
+;; backward-compatible with emacs 25
2249
+(unless (fboundp 'advice--where)
2250
+ (defun advice--where (f)
2251
+ (let ((bytecode (aref f 1))
2252
+ (where nil))
2253
+ (dolist (elem advice--where-alist)
2254
+ (if (eq bytecode (cadr elem)) (setq where (car elem))))
2255
+ where)))
2256
+
2257
(defun helpful--advise-info (function)
2258
(let* ((flist (indirect-function function))
2259
(docfun nil)
0 commit comments