[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu e4c2728734 270/288: fix check-declare error by elimin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu e4c2728734 270/288: fix check-declare error by eliminating declare-function |
Date: |
Thu, 6 Jan 2022 03:58:59 -0500 (EST) |
branch: elpa/anzu
commit e4c2728734fba74a521a3296aa9c0443992da18a
Author: Neil Okamoto <neil.okamoto@gmail.com>
Commit: Neil Okamoto <neil.okamoto@gmail.com>
fix check-declare error by eliminating declare-function
The declare-function statement was probably intended to silence the
byte compiler about the use of 'migemo-forward' from the optional
'migemo' package. However, the syntax of the declare-function was
invalid, so rather than solving the byte compile error this code
created a check-declare error as well.
This change drops the declare-function line from the file. Instead, we
wrap 'with-no-warnings' around the call to 'migemo-foward'. This is
sufficient to silence the byte-compiler. At runtime, the predicate
'anzu--use-migemo-p' ensures this line is never called unless the
'migemo' package is actually present.
---
anzu.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/anzu.el b/anzu.el
index e88d09d52e..7a58dd4dd4 100644
--- a/anzu.el
+++ b/anzu.el
@@ -40,8 +40,6 @@
(require 'cl-lib)
(require 'thingatpt)
-(declare-function migemo-forward 'migemo)
-
(defgroup anzu nil
"Show searched position in mode-line"
:group 'isearch)
@@ -205,7 +203,7 @@
(finish nil)
(search-func (if (anzu--use-migemo-p)
(lambda (word &optional bound noerror count)
- (ignore-errors
+ (with-no-warnings
(migemo-forward word bound noerror count)))
#'re-search-forward))
(case-fold-search (anzu--case-fold-search input)))
@@ -868,8 +866,10 @@
(anzu--isearch-query-replace-common t arg))
(provide 'anzu)
+
;; Local Variables:
;; indent-tabs-mode: nil
;; fill-column: 85
;; End:
+
;;; anzu.el ends here
- [nongnu] elpa/anzu 6fded24b36 224/288: Bump up version and update Changes, (continued)
- [nongnu] elpa/anzu 6fded24b36 224/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f2914907e9 255/288: Update minimum Emacs version, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 13401ab3c6 249/288: Don't search over bound, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu d257c79a7a 258/288: Merge pull request #85 from syohex/add-docstrings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 0dbefcdd1f 252/288: Enforce use of spaces for indentation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 177a328830 266/288: Fix issue #93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu a5a22fd537 280/288: release 0.63, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9d334a4e37 265/288: replaced string should be compiled at regexp replace, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ffbe938d60 268/288: perform elisp-lint in circleci, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 7dc4abe0a0 274/288: Merge branch 'master' into fix93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e4c2728734 270/288: fix check-declare error by eliminating declare-function,
ELPA Syncer <=
- [nongnu] elpa/anzu ee6a6448df 277/288: Merge pull request #107 from emacsorphanage/revert-104-fix93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 71a1a88dcd 275/288: Merge pull request #104 from agreselin/fix93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 2e69955da9 271/288: clean up "make lint" rule in Makefile, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 592f8ee6d0 263/288: Merge pull request #95 from syohex/emacs-27-bug, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 7b8688c84d 282/288: default anzu-search-threshold and anzu-replace-threshold is 1000, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b3d15fba55 283/288: Support non contiguous regions like rectangle region (#115), ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 5abb37455e 288/288: fix the ci status badge on README.md, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu bdb3da5028 285/288: bump version 0.64, ELPA Syncer, 2022/01/06