mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
; * lisp/replace.el (occur-1): Use seq-some.
Copyright-paperwork-exempt: yes
This commit is contained in:
parent
fa528b4e5c
commit
31eaf18276
1 changed files with 6 additions and 6 deletions
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue