Next: , Previous: , Up: Visiting or Finding Files   [Index]


7.3.1.3 find-file-noselect

Function: find-file-noselect filename &optional nowarn rawfile wildcards

This function returns a buffer visiting the file FILENAME. It does not make the buffer current or display it in a window.

The function returns an existing buffer if there is one; otherwise it creates a new buffer and reads the file into it.

When this function uses an existing buffer, it first verifies that the file has not changed since it was last visited or saved in that buffer. If the file has changed, this function asks the user whether to reread the changed file. If the user says ‘yes’, any edits previously made in the buffer are lost.

This function normally calls after-find-file after reading the file. This function sets the buffer major mode, parses local variables, warns the user if there exists an auto-save file more recent than the file just visited, and finishes by running the functions in ‘find-file-hook’.

WILDCARDS

if non-nil, expand wildcard characters in FILENAME and visit all of the matching files.

NOWARN

if non-nil, do not issue warnings.

RAWFILE

if non-nil, do not call after-find-file, and find-file-not-found-functions are not run in case of failure, and suppresses coding system conversion and format conversion.

RETURN VALUE

usually returns the buffer that is visiting the file FILENAME. If WILDCARDS are used, it returns a list of buffers that are visiting various files.