Next: , Previous: , Up: Partial Files   [Contents][Index]


35.12.2 Creating a Partial File

Command: make-file-part &optional start end name buffer

Make a file part on buffer buffer out of the region. Call it name. This command creates a new buffer containing the contents of the region and marks the buffer as referring to the specified buffer, called the master buffer. When the file-part buffer is saved, its changes are integrated back into the master buffer. When the master buffer is deleted, all file parts are deleted with it.

When called from a function, expects four arguments, start, end, name, and buffer, all of which are optional and default to the beginning of buffer, the end of buffer, a name generated from buffer’s name, and the current buffer, respectively.