emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/anzu f3c83f3109 116/288: Merge pull request #21 from syohe


From: ELPA Syncer
Subject: [nongnu] elpa/anzu f3c83f3109 116/288: Merge pull request #21 from syohex/fix-byte-compile-warning
Date: Thu, 6 Jan 2022 03:58:45 -0500 (EST)

branch: elpa/anzu
commit f3c83f310960f0c1d24f865b964f9e41aa9aaa9a
Merge: 8fe3d080ff e817db8532
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    Merge pull request #21 from syohex/fix-byte-compile-warning
    
    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]