# HG changeset patch # User Richard M. Stallman # Date 1060132345 0 # Node ID 3c3abdef580e724e29aeb6dd996c6a155fd92750 # Parent 2df0dfd737188861fd0e894fd1dfaadb14482415 (Buffer File Name): set-visited-file-name renames the buffer too. diff -r 2df0dfd73718 -r 3c3abdef580e lispref/buffers.texi --- a/lispref/buffers.texi Wed Aug 06 01:11:54 2003 +0000 +++ b/lispref/buffers.texi Wed Aug 06 01:12:25 2003 +0000 @@ -444,10 +444,13 @@ If @var{filename} is a non-empty string, this function changes the name of the file visited in the current buffer to @var{filename}. (If the buffer had no visited file, this gives it one.) The @emph{next time} -the buffer is saved it will go in the newly-specified file. This -command marks the buffer as modified, since it does not (as far as Emacs -knows) match the contents of @var{filename}, even if it matched the -former visited file. +the buffer is saved it will go in the newly-specified file. + +This command marks the buffer as modified, since it does not (as far +as Emacs knows) match the contents of @var{filename}, even if it +matched the former visited file. It also renames the buffer to +correspond to the new file name, unless the new name is already in +use. If @var{filename} is @code{nil} or the empty string, that stands for ``no visited file''. In this case, @code{set-visited-file-name} marks