How do I get a list of all buffers in Emacs? I then want to iterate this list using dolist
or mapcar
.
Use (buffer-list &optional frame)
:
Return a list of all existing live buffers. If the optional arg FRAME is a frame, we return the buffer list in the proper order for that frame: the buffers show in FRAME come first, followed by the rest of the buffers.
(list-buffers)
并从那里开始工作?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.