]> code.delx.au - gnu-emacs-elpa/commitdiff
Fixup compilation warnings
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 19 May 2015 14:13:41 +0000 (16:13 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 19 May 2015 14:13:41 +0000 (16:13 +0200)
ivy.el
swiper.el

diff --git a/ivy.el b/ivy.el
index 9870032bf9d349fc8aed9710b12b4134654d4c69..13955b9abad73c7fc7ff72b0440aa64bae0e31bb 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -198,6 +198,15 @@ When non-nil, it should contain one %d.")
 (defvar ivy--regex-function 'ivy--regex
   "Current function for building a regex.")
 
+(defvar ivy--subexps 0
+  "Number of groups in the current `ivy--regex'.")
+
+(defvar ivy--full-length nil
+  "When :dynamic-collection is non-nil, this can be the total amount of candidates.")
+
+(defvar ivy--old-text ""
+  "Store old `ivy-text' for dynamic completion.")
+
 (defvar Info-current-file)
 
 (defmacro ivy-quit-and-run (&rest body)
@@ -807,9 +816,6 @@ Minibuffer bindings:
 
 ;;* Implementation
 ;;** Regex
-(defvar ivy--subexps 0
-  "Number of groups in the current `ivy--regex'.")
-
 (defvar ivy--regex-hash
   (make-hash-table :test 'equal)
   "Store pre-computed regex.")
@@ -821,7 +827,8 @@ This allows to \"quote\" N spaces by inputting N+1 spaces."
   (let ((len (length str))
         start0
         (start1 0)
-        res s)
+        res s
+        match-len)
     (while (and (string-match " +" str start1)
                 (< start1 len))
       (setq match-len (- (match-end 0) (match-beginning 0)))
@@ -934,17 +941,11 @@ Everything after \"!\" should not match."
     (goto-char (minibuffer-prompt-end))
     (delete-region (line-end-position) (point-max))))
 
-(defvar ivy--full-length nil
-  "When :dynamic-collection is non-nil, this can be the total amount of candidates.")
-
-(defvar ivy--old-text ""
-  "Store old `ivy-text' for dynamic completion.")
-
 (defun ivy--insert-prompt ()
   "Update the prompt according to `ivy--prompt'."
   (when ivy--prompt
     (unless (memq this-command '(ivy-done ivy-alt-done ivy-partial-or-done
-                                 counsel-find-symbol))
+                                          counsel-find-symbol))
       (setq ivy--prompt-extra ""))
     (let (head tail)
       (if (string-match "\\(.*\\): $" ivy--prompt)
@@ -1046,6 +1047,8 @@ Should be run via minibuffer `post-command-hook'."
         (forward-line 1)
         (insert text)))))
 
+(declare-function colir-blend-face-background "ext:colir")
+
 (defun ivy--add-face (str face)
   "Propertize STR with FACE.
 `font-lock-append-text-property' is used, since it's better than
index c52266cc6817e1b6049a09f0d00d3f51bf318b07..7955817bcc8f850c204ecb2dfa64083eb74b8cee 100644 (file)
--- a/swiper.el
+++ b/swiper.el
@@ -83,6 +83,9 @@
     map)
   "Keymap for swiper.")
 
+(defvar swiper--window nil
+  "Store the current window.")
+
 (defun swiper-query-replace ()
   "Start `query-replace' with string to replace from last search string."
   (interactive)
       (ivy-quit-and-run
        (avy--goto candidate)))))
 
-(defvar swiper--window nil
-  "Store the current window.")
-
 (defun swiper-recenter-top-bottom (&optional arg)
   "Call (`recenter-top-bottom' ARG) in `swiper--window'."
   (interactive "P")