tags:

views:

156

answers:

2

In emacs, I've read the following code snippet in simple.el :

(frame-parameter frame 'buried-buffer-list)

What is the exact meaning of buried-buffer-list parameter ? What it is used for ?

+1  A: 

The result of M-x describe function RET frame-parameter is

frame-parameter is a built-in function.

(frame-parameter FRAME PARAMETER)

Return FRAME's value for parameter PARAMETER. If FRAME is nil, describe the currently selected frame.

Also, have a look in the Elisp info manual for the node called 'Frame/Frame Parameters". There isn't a specific reference to 'buried-buffer-list that I could find.

You might be able to get the same thing by doing

(cdr (frame-parameter FRAME 'buffer-list))

since a "buried buffer" is just a buffer in the list that isn't at the top.

Ben Collins
+1  A: 

A quick look at http://www.update.uu.se/~ams/slask/emacs/src/frame.h returns:

List of buffers that were viewed, then buried in this frame.  The
most recently buried buffer is first.

So in theory you can use cdr to obtain the same list as Ben Collins said.

Federico Builes
The real question is : "What is a buried frame" ?
Jérôme Radix
A buffer that was sent to the end of the buffer list.
Federico Builes