branch: elpa/anzu
commit ab561fe8963169f93b240120f6f3c3783cb07326
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>

    Use symbol-value instead of eval-when-compile + defvar
---
 anzu.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/anzu.el b/anzu.el
index 76b3404657..47bc12e50b 100644
--- a/anzu.el
+++ b/anzu.el
@@ -36,9 +36,6 @@
 
 ;;; Code:
 
-(eval-when-compile
-  (defvar migemo-isearch-enable-p))
-
 (require 'cl-lib)
 (require 'thingatpt)
 
@@ -163,7 +160,8 @@
   (when anzu-use-migemo
     (unless (featurep 'migemo)
       (error "Error: migemo is not loaded"))
-    migemo-isearch-enable-p))
+    (and (boundp 'migemo-isearch-enable-p)
+         (symbol-value 'migemo-isearch-enable-p))))
 
 (defun anzu--search-all-position (str)
   (unless anzu--last-command

Reply via email to