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
|
@ -7,10 +7,10 @@
|
|||
(defvar +word-wrap--major-mode-indent-var nil)
|
||||
|
||||
(defvar adaptive-wrap-extra-indent)
|
||||
(defun +word-wrap--adjust-extra-indent-a (orig-fn beg end)
|
||||
(defun +word-wrap--adjust-extra-indent-a (fn beg end)
|
||||
"Contextually adjust extra word-wrap indentation."
|
||||
(let ((adaptive-wrap-extra-indent (+word-wrap--calc-extra-indent beg)))
|
||||
(funcall orig-fn beg end)))
|
||||
(funcall fn beg end)))
|
||||
|
||||
(defun +word-wrap--calc-extra-indent (p)
|
||||
"Calculate extra word-wrap indentation at point."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue