| 117 | | This function is the guts of all the file-visiting functions. It finds |
|---|
| 118 | | or creates a buffer visiting the file @var{filename}, and returns it. |
|---|
| 119 | | It uses an existing buffer if there is one, and otherwise creates a new |
|---|
| 120 | | buffer and reads the file into it. You may make the buffer current or |
|---|
| 121 | | display it in a window if you wish, but this function does not do so. |
|---|
| 122 | | |
|---|
| 123 | | If @var{wildcards} is non-@code{nil}, |
|---|
| 124 | | then @code{find-file-noselect} expands wildcard |
|---|
| 125 | | characters in @var{filename} and visits all the matching files. |
|---|
| 126 | | |
|---|
| 127 | | When @code{find-file-noselect} uses an existing buffer, it first |
|---|
| 128 | | verifies that the file has not changed since it was last visited or |
|---|
| 129 | | saved in that buffer. If the file has changed, then this function asks |
|---|
| 130 | | the user whether to reread the changed file. If the user says |
|---|
| 131 | | @samp{yes}, any changes previously made in the buffer are lost. |
|---|
| | 117 | This function is the guts of all the file-visiting functions. It |
|---|
| | 118 | returns a buffer visiting the file @var{filename}. You may make the |
|---|
| | 119 | buffer current or display it in a window if you wish, but this |
|---|
| | 120 | function does not do so. |
|---|
| | 121 | |
|---|
| | 122 | The function returns an existing buffer if there is one; otherwise it |
|---|
| | 123 | creates a new buffer and reads the file into it. When |
|---|
| | 124 | @code{find-file-noselect} uses an existing buffer, it first verifies |
|---|
| | 125 | that the file has not changed since it was last visited or saved in |
|---|
| | 126 | that buffer. If the file has changed, this function asks the user |
|---|
| | 127 | whether to reread the changed file. If the user says @samp{yes}, any |
|---|
| | 128 | edits previously made in the buffer are lost. |
|---|
| | 129 | |
|---|
| | 130 | Reading the file involves decoding the file's contents (@pxref{Coding |
|---|
| | 131 | Systems}), including end-of-line conversion, and format conversion |
|---|
| | 132 | (@pxref{Format Conversion}). If @var{wildcards} is non-@code{nil}, |
|---|
| | 133 | then @code{find-file-noselect} expands wildcard characters in |
|---|
| | 134 | @var{filename} and visits all the matching files. |
|---|