Skip to content

Commit d40e391

Browse files
Fix deprecated advice--where-alist
see Wilfred#297
1 parent eb574f8 commit d40e391

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

helpful.el

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,9 +1778,7 @@ Each advice is returned as a list (WHERE FUNC)."
17781778
(push (list
17791779
;; This can also be done with `advice--where', but that
17801780
;; isn't available in Emacs 25
1781-
(car
1782-
(--last (eq (aref func 1) (cadr it))
1783-
advice--where-alist))
1781+
(advice--how func)
17841782
(advice--car func))
17851783
result))
17861784
(setq func (advice--cdr func)))
@@ -2675,7 +2673,7 @@ state of the current symbol."
26752673
"Remove mentions of advice from DOCSTRING."
26762674
(let* ((lines (s-lines docstring))
26772675
(where-types (--map (symbol-name (car it))
2678-
advice--where-alist))
2676+
advice--how-alist))
26792677
(relevant-lines
26802678
(--remove
26812679
(s-matches-p

0 commit comments

Comments
 (0)