avy.el: Fix compiler warning

This commit is contained in:
Oleh Krehel 2018-08-14 23:21:25 +02:00
parent fd7b929719
commit 157486aeb1

8
avy.el
View File

@ -375,6 +375,10 @@ SEQ-LEN is how many elements of KEYS it takes to identify a match."
(defun avy-order-closest (x)
(abs (- (caar x) (point))))
(defvar avy-command nil
"Store the current command symbol.
E.g. 'avy-goto-line or 'avy-goto-char.")
(defun avy-tree (lst keys)
"Coerce LST into a balanced tree.
The degree of the tree is the length of KEYS.
@ -622,10 +626,6 @@ multiple DISPLAY-FN invocations."
Commands using `avy-with' macro can be resumed."
(interactive))
(defvar avy-command nil
"Store the current command symbol.
E.g. 'avy-goto-line or 'avy-goto-char.")
(defmacro avy-with (command &rest body)
"Set `avy-keys' according to COMMAND and execute BODY.
Set `avy-style' according to COMMMAND as well."