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."
1710
1710
(setq stgit-did-advise t ))
1711
1711
(run-hooks 'stgit-mode-hook ))
1712
1712
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
+
1713
1718
(defun stgit-advise-funlist (funlist )
1714
1719
" Advise functions in FUNLIST to refresh stgit buffers."
1715
1720
(mapc (lambda (sym )
1716
1721
(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 )))
1720
1723
funlist))
1721
1724
1722
1725
(defun stgit-advise ()
You can’t perform that action at this time.
0 commit comments