diff options
| author | Stefan Monnier | 2008-11-18 18:26:08 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-11-18 18:26:08 +0000 |
| commit | 35b05a7793f3e0f702ee8cd5aec68b2acbe815cd (patch) | |
| tree | d253f382172c734760345c710f21e242cafcdea4 /doc | |
| parent | d0414e3656d63bbf5640c832cf6f630281bc23be (diff) | |
| download | emacs-35b05a7793f3e0f702ee8cd5aec68b2acbe815cd.tar.gz emacs-35b05a7793f3e0f702ee8cd5aec68b2acbe815cd.zip | |
(confirm-nonexistent-file-or-buffer):
Rename from find-file-confirm-nonexistent-file.
(read-buffer-to-switch): Use it.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/files.texi | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 28d9765a4b2..93a6161d782 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi | |||
| @@ -240,14 +240,14 @@ moves or copies the file into the displayed directory. For details, | |||
| 240 | see @ref{Drag and Drop}, and @ref{Misc Dired Features}. | 240 | see @ref{Drag and Drop}, and @ref{Misc Dired Features}. |
| 241 | 241 | ||
| 242 | @cindex creating files | 242 | @cindex creating files |
| 243 | @vindex find-file-confirm-nonexistent-file | 243 | @vindex confirm-nonexistent-file-or-buffer |
| 244 | What if you want to create a new file? Just visit it. Emacs | 244 | What if you want to create a new file? Just visit it. |
| 245 | displays @samp{(New file)} in the echo area, but in other respects | ||
| 246 | behaves as if you had visited an existing empty file. If you make | ||
| 247 | changes and save them, the file is created. If you change the | ||
| 248 | variable @code{find-file-confirm-nonexistent-file} to @code{t}, then | ||
| 249 | Emacs prompts you for confirmation before visiting a non-existent | 245 | Emacs prompts you for confirmation before visiting a non-existent |
| 250 | file. | 246 | file, and displays @samp{(New file)} in the echo area, but in other |
| 247 | respects behaves as if you had visited an existing empty file. If you | ||
| 248 | make changes and save them, the file is created. If you change the | ||
| 249 | variable @code{confirm-nonexistent-file-or-buffer} to @code{nil}, then | ||
| 250 | Emacs will not even prompt you for confirmation. | ||
| 251 | 251 | ||
| 252 | @kindex C-x C-v | 252 | @kindex C-x C-v |
| 253 | @findex find-alternate-file | 253 | @findex find-alternate-file |