Next: , Previous: , Up: Indirect Buffers   [Index]


7.4.9.2 clone-indirect-buffer

This function creates and returns a new indirect buffer that shares the current buffer’s base buffer and copies the rest of the current buffer’s attributes.

If DISPLAY-FLAG is non-‘nil’, as it always is in interactive calls, that means to display the new buffer by calling pop-to-buffer.

Function: clone-indirect-buffer newname display-flag &optional norecord

Create an indirect buffer that is a twin copy of the current buffer.

NEWNAME

name to give to the new indirect buffer. If nil, defaults to the current buffer’s name, modified by adding an <N> suffix to it, or incrementing the N in an existing suffix.

DISPLAY-FLAG

if non-nil, show the new buffer with pop-to-buffer.

NORECORD

if non-nil, do not put this buffer at the front fo the list of recently selected ones.

RETURN VALUE

the newly-created indirect buffer.