]> gitweb.factorcode.org Git - factor.git/commitdiff
use cl-remove-if instead of remove-if
authorRudi Grinberg <me@rgrinberg.com>
Tue, 23 Mar 2021 06:21:02 +0000 (23:21 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 23 Mar 2021 14:26:43 +0000 (07:26 -0700)
The latter is an alias. Also require hte library that provides this
function.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
misc/fuel/fuel-xref.el

index b40669a02d8cce924d9533f68d375cbea6bf2dfd..de05e265ae46fc6c525eef911c90b4b1089d88fe 100644 (file)
@@ -21,6 +21,7 @@
 (require 'fuel-menu)
 (require 'fuel-base)
 (require 'factor-mode)
+(require 'cl-seq)
 
 (require 'button)
 
@@ -138,7 +139,7 @@ cursor at the first ocurrence of the used word."
   "Should be called in a with-current-buffer context"
   (put-text-property 0 (length search-str) 'font-lock-face 'bold search-str)
   (let* ((inhibit-read-only t)
-         (xrefs (remove-if (lambda (el) (not (nth 2 el))) xrefs))
+         (xrefs (cl-remove-if (lambda (el) (not (nth 2 el))) xrefs))
          (count-str (fuel-xref--pluralize-count (length xrefs) "vocab"))
          (title-str (format "%s %s %s:\n\n" count-str cc search-str)))
     (erase-buffer)