Skip to content

Instantly share code, notes, and snippets.

@hidsh
Last active March 25, 2024 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidsh/7d7b4a2ace9605b79d1ca2df0935428d to your computer and use it in GitHub Desktop.
Save hidsh/7d7b4a2ace9605b79d1ca2df0935428d to your computer and use it in GitHub Desktop.
suppress evil-ex warnings at starupt emacs
#!/usr/bin/sh
patch evil-ex.el evil-ex.patch
.emacs.d/elpa/evil-20240222.652/evil-ex.el: Warning: ‘count’ is an obsolete alias (as of 27.1); use ‘cl-count’ instead.
.emacs.d/elpa/evil-20240222.652/evil-ex.el: Warning: ‘search’ is an obsolete alias (as of 27.1); use ‘cl-search’ instead. [2 times]
.emacs.d/elpa/evil-20240222.652/evil-ex.el: Warning: ‘subst’ is an obsolete alias (as of 27.1); use ‘cl-subst’ instead.
# diff -U0 evil-ex.el.orig evil-ex.el > evil-ex.patch
--- evil-ex.el.orig 2024-03-25 09:20:31.583272294 +0900
+++ evil-ex.el 2024-03-25 09:35:32.648138663 +0900
@@ -53 +53 @@
- (count command argument #'evil-ex-call-command)
+ (cl-count command argument #'evil-ex-call-command)
@@ -57 +57 @@
- (count
+ (cl-count
@@ -78 +78 @@
- ((\? base) (\? offset) search (\? offset)
+ ((\? base) (\? offset) cl-search (\? offset)
@@ -87 +87 @@
- search
+ cl-search
@@ -94 +94 @@
- (search
+ (cl-search
@@ -99 +99 @@
- subst)
+ cl-subst)
@@ -110 +110 @@
- (subst
+ (cl-subst
@@ -445 +445 @@
- (count (when (integerp range) range)))
+ (cl-count (when (integerp range) range)))
@@ -766 +766 @@
- (let* ((count (when (integerp range) range))
+ (let* ((cl-count (when (integerp range) range))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment