branch: elpa/anzu
commit e817db85329996d59e317a4358eb89ce76be5eb1
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>
Fix byte compile warning for Emacs 24.3
---
anzu.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/anzu.el b/anzu.el
index 5767fcc09e..542255e602 100644
--- a/anzu.el
+++ b/anzu.el
@@ -258,12 +258,12 @@
(remove-hook 'isearch-mode-end-hook 'anzu--reset-mode-line t)
(anzu--reset-mode-line)))
+(defun anzu--turn-on ()
+ (unless (minibufferp)
+ (anzu-mode +1)))
+
;;;###autoload
-(define-global-minor-mode global-anzu-mode
- anzu-mode
- (lambda ()
- (unless (minibufferp)
- (anzu-mode t)))
+(define-global-minor-mode global-anzu-mode anzu-mode anzu--turn-on
:group 'anzu)
(defsubst anzu--query-prompt-base (use-region use-regexp)