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


35.12.1 Intro to Partial Files

A partial file is a section of a buffer (called the master buffer) that is placed in its own buffer and treated as its own file. Changes made to the partial file are not reflected in the master buffer until the partial file is “saved” using the standard buffer save commands. Partial files can be “reverted” (from the master buffer) just like normal files. When a file part is active on a master buffer, that section of the master buffer is marked as read-only. Two file parts on the same master buffer are not allowed to overlap. Partial file buffers are indicated by the words ‘File Part’ in the modeline.

The master buffer knows about all the partial files that are active on it, and thus killing or reverting the master buffer will be handled properly. When the master buffer is saved, if there are any unsaved partial files active on it then the user will be given the opportunity to first save these files.

When a partial file buffer is first modified, the master buffer is automatically marked as modified so that saving the master buffer will work correctly.