diff options
| author | Richard M. Stallman | 2003-08-06 01:12:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-08-06 01:12:25 +0000 |
| commit | 4da34f1e740e52b6264a15dacf7442057cf941ca (patch) | |
| tree | 1bd16702c7fdfdd32333c1cb94a66516a5051999 | |
| parent | 57cbdf17173e3290d5ac338d737d236347d979c8 (diff) | |
| download | emacs-4da34f1e740e52b6264a15dacf7442057cf941ca.tar.gz emacs-4da34f1e740e52b6264a15dacf7442057cf941ca.zip | |
(Buffer File Name): set-visited-file-name renames the buffer too.
| -rw-r--r-- | lispref/buffers.texi | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lispref/buffers.texi b/lispref/buffers.texi index 8bfbf755a29..d97ae101995 100644 --- a/lispref/buffers.texi +++ b/lispref/buffers.texi | |||
| @@ -444,10 +444,13 @@ such buffer in the buffer list. | |||
| 444 | If @var{filename} is a non-empty string, this function changes the | 444 | If @var{filename} is a non-empty string, this function changes the |
| 445 | name of the file visited in the current buffer to @var{filename}. (If the | 445 | name of the file visited in the current buffer to @var{filename}. (If the |
| 446 | buffer had no visited file, this gives it one.) The @emph{next time} | 446 | buffer had no visited file, this gives it one.) The @emph{next time} |
| 447 | the buffer is saved it will go in the newly-specified file. This | 447 | the buffer is saved it will go in the newly-specified file. |
| 448 | command marks the buffer as modified, since it does not (as far as Emacs | 448 | |
| 449 | knows) match the contents of @var{filename}, even if it matched the | 449 | This command marks the buffer as modified, since it does not (as far |
| 450 | former visited file. | 450 | as Emacs knows) match the contents of @var{filename}, even if it |
| 451 | matched the former visited file. It also renames the buffer to | ||
| 452 | correspond to the new file name, unless the new name is already in | ||
| 453 | use. | ||
| 451 | 454 | ||
| 452 | If @var{filename} is @code{nil} or the empty string, that stands for | 455 | If @var{filename} is @code{nil} or the empty string, that stands for |
| 453 | ``no visited file''. In this case, @code{set-visited-file-name} marks | 456 | ``no visited file''. In this case, @code{set-visited-file-name} marks |