refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an :around advice.
This commit is contained in:
parent
12732be155
commit
06392a723f
51 changed files with 223 additions and 229 deletions
|
@ -49,7 +49,7 @@
|
|||
(setq git-timemachine-show-minibuffer-details t)
|
||||
|
||||
;; TODO PR this to `git-timemachine'
|
||||
(defadvice! +vc-support-git-timemachine-a (orig-fn)
|
||||
(defadvice! +vc-support-git-timemachine-a (fn)
|
||||
"Allow `browse-at-remote' commands in git-timemachine buffers to open that
|
||||
file in your browser at the visited revision."
|
||||
:around #'browse-at-remote-get-url
|
||||
|
@ -71,7 +71,7 @@ file in your browser at the visited revision."
|
|||
(funcall url-formatter repo-url ref relname
|
||||
(if start-line start-line)
|
||||
(if (and end-line (not (equal start-line end-line))) end-line)))
|
||||
(funcall orig-fn)))
|
||||
(funcall fn)))
|
||||
|
||||
(defadvice! +vc-update-header-line-a (revision)
|
||||
"Show revision details in the header-line, instead of the minibuffer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue