3

How do I get a list of all buffers in Emacs? I then want to iterate this list using dolist or mapcar.

4

2 回答 2

5

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.

于 2013-01-11T00:52:02.883 回答
-1

(list-buffers) and work from there?

于 2013-01-11T00:52:37.847 回答