|
From: | Stefan Monnier |
Subject: | bug#46268: 27.1.91; Error in occur-rename-buffer |
Date: | Wed, 03 Feb 2021 10:22:50 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> + (mapconcat (lambda (boo) > + (or (and (buffer-live-p boo) > + (buffer-name boo)) `buffer-name` used to be the function that provided the functionality of `buffer-live-p`, so you can replace (and (buffer-live-p boo) (buffer-name boo)) with just (buffer-live-p boo) By definition of a buffer is live iff it has a name. > + (and (overlayp boo) > + (buffer-live-p (overlay-buffer boo)) > + (buffer-name (overlay-buffer boo))))) And here you can further simplify because `overlay-buffer` only returns non-nil if the buffer is live. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |