Files

[1]##1 [C-X C-F] This command prompts in the echo line for a file name, which becomes the new associated file name for the current buffer. [C-X C-R] This command prompts in the echo line for a file name, then it deletes all of the text in the current buffer and reads in the file. The associated file name is set to the name of the file just read. The number of lines read is displayed in the echo line. [C-X C-S] This command writes the contents of the current buffer to its associated file. The ``changed'' flag for the current buffer is reset. It is an error to use this command in a buffer which lacks an associated file name. This command is a no-operation if the buffer has not been changed since the last write. [C-X C-V] This command selects a file for editing. It prompts for a file name in the echo line. It then looks through all of the buffers for a buffer whose associated file name is the same as the file being selected. If a buffer is found, it just switches to that buffer. Otherwise it crerates a new buffer, (fabricating a name from the last part of the new file name), reads the file into it, and switches to the buffer.

If the desired new buffer name is not unique (perhaps you tried to visit a file in some other directory with the same name as a file already read in) the command will prompt for a new buffer name. You can either supply a buffer name, or just type newline to overwrite the old buffer. [C-X C-W] This command prompts in the echo line for a file name, then it writes the contents of the current buffer to that file. The ``changed'' flag for the current buffer is reset, and the supplied file name becomes the associated file name for the current buffer.