Commit eb452dfe authored by Juanma Barranquero's avatar Juanma Barranquero

ibuffer-mark-by-content-regexp: don't depend on `cl-some'

* lisp/ibuf-ext.el (ibuffer-mark-by-content-regexp): Use `cl-dolist'
instead of `cl-some' to avoid a run-time dependency on cl-lib that
triggers an unreported bug similar to bug#38430.
parent f2250118
Pipeline #4215 failed with stage
in 56 minutes and 25 seconds
...@@ -1861,8 +1861,9 @@ Otherwise buffers whose name matches an element of ...@@ -1861,8 +1861,9 @@ Otherwise buffers whose name matches an element of
(cond ((and (not all-buffers) (cond ((and (not all-buffers)
(or (or
(memq mode ibuffer-never-search-content-mode) (memq mode ibuffer-never-search-content-mode)
(cl-some (lambda (x) (string-match x (buffer-name buf))) (cl-dolist (x ibuffer-never-search-content-name nil)
ibuffer-never-search-content-name))) (when-let ((found (string-match x (buffer-name buf))))
(cl-return found)))))
(setq res nil)) (setq res nil))
(t (t
(with-current-buffer buf (with-current-buffer buf
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment