; * lisp/replace.el (occur-1): Use seq-some.

Copyright-paperwork-exempt: yes
This commit is contained in:
William Theesfeld 2026-06-05 15:50:01 -04:00 committed by Sean Whitton
parent fa528b4e5c
commit 31eaf18276

View file

@ -1982,12 +1982,12 @@ See also `multi-occur'."
(source-buffer-default-directory default-directory))
;; Handle the case where one of the buffers we're searching is the
;; output buffer. Just rename it.
(when (member buf-name
;; FIXME: Use cl-exists.
(mapcar
(lambda (boo)
(buffer-name (if (overlayp boo) (overlay-buffer boo) boo)))
active-bufs))
(when (seq-some (lambda (boo)
(equal buf-name
(buffer-name (if (overlayp boo)
(overlay-buffer boo)
boo))))
active-bufs)
(with-current-buffer buf-name
(rename-uniquely)))