File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1710,13 +1710,16 @@ See also \\[customize-group] for the \"stgit\" group."
17101710 (setq stgit-did-advise t ))
17111711 (run-hooks 'stgit-mode-hook ))
17121712
1713+ (defun stgit-update-stgit-advice (&rest _ignore )
1714+ " Update work tree and index of stgit buffers.
1715+ Intended to be used to advise other functions."
1716+ (stgit-update-stgit-for-buffer :index ))
1717+
17131718(defun stgit-advise-funlist (funlist )
17141719 " Advise functions in FUNLIST to refresh stgit buffers."
17151720 (mapc (lambda (sym )
17161721 (when (fboundp sym)
1717- (eval `(defadvice , sym (after stgit-update-stgit-for-buffer)
1718- (stgit-update-stgit-for-buffer :index )))
1719- (ad-activate sym)))
1722+ (advice-add sym :after #'stgit-update-stgit-advice )))
17201723 funlist))
17211724
17221725(defun stgit-advise ()
You can’t perform that action at this time.
0 commit comments