[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7d7df58 3/5: swiper.el: Fix compilation warnings
From: |
Oleh Krehel |
Subject: |
[elpa] master 7d7df58 3/5: swiper.el: Fix compilation warnings |
Date: |
Mon, 20 Apr 2015 14:13:23 +0000 |
branch: master
commit 7d7df580fc020247143b1db3636df9523a32bf78
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
swiper.el: Fix compilation warnings
---
swiper.el | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/swiper.el b/swiper.el
index 046de81..1afd056 100644
--- a/swiper.el
+++ b/swiper.el
@@ -95,15 +95,15 @@
(swiper--cleanup)
(exit-minibuffer))))
+(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")
(with-selected-window swiper--window
(recenter-top-bottom arg)))
-(defvar swiper--window nil
- "Store the current window.")
-
(defun swiper-font-lock-ensure ()
"Ensure the entired buffer is highlighted."
(unless (or (derived-mode-p 'magit-mode)
@@ -117,7 +117,7 @@
(unless (> (buffer-size) 100000)
(if (fboundp 'font-lock-ensure)
(font-lock-ensure)
- (font-lock-fontify-buffer)))))
+ (with-no-warnings (font-lock-fontify-buffer))))))
(defvar swiper--format-spec ""
"Store the current candidates format spec.")
@@ -153,6 +153,12 @@ When non-nil, INITIAL-INPUT is the initial search pattern."
(interactive)
(swiper--ivy initial-input))
+(defvar swiper--anchor nil
+ "A line number to which the search should be anchored.")
+
+(defvar swiper--len 0
+ "The last length of input for which an anchoring was made.")
+
(defun swiper--init ()
"Perform initialization common to both completion methods."
(deactivate-mark)
@@ -199,6 +205,9 @@ When non-nil, INITIAL-INPUT is the initial search pattern."
(setq expose (overlay-get ov 'isearch-open-invisible)))
(funcall expose ov)))))
+(defvar swiper--overlays nil
+ "Store overlays.")
+
(defun swiper--cleanup ()
"Clean up the overlays."
(while swiper--overlays
@@ -207,15 +216,6 @@ When non-nil, INITIAL-INPUT is the initial search pattern."
(goto-char (point-min))
(isearch-clean-overlays)))
-(defvar swiper--overlays nil
- "Store overlays.")
-
-(defvar swiper--anchor nil
- "A line number to which the search should be anchored.")
-
-(defvar swiper--len 0
- "The last length of input for which an anchoring was made.")
-
(defun swiper--update-input-ivy ()
"Called when `ivy' input is updated."
(swiper--cleanup)