The buffer ordering system is configured by setting various position variables. A position is either a number, giving the index of insertion into a buffer-list, or it is a function that returns such an index. The position 0 is the front of a buffer-list.
When a position is given as a function, the function takes three arguments and returns an index. The arguments are:
- the buffer_container being inserted into
- the buffer being inserted
- the index of another buffer, appropriate to the action taking place.
For example, when you follow a link in a new buffer, the argument i is the index of the buffer containing the link.
Several position functions are provided by Conkeror to cover the most common cases:
- before the other buffer.
- after the other buffer.
- the end of the buffer list.
- after the last buffer of the same type.