From 1af5710156ed2995e14d3aa08ddfdcaa5480d371 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 27 Dec 2005 22:54:13 +0000 Subject: [PATCH] (set-visited-file-name): Doc fix. --- lisp/ChangeLog | 2 ++ lisp/files.el | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4e56c1bb12f..560f00341f5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2005-12-27 Richard M. Stallman + * files.el (set-visited-file-name): Doc fix. + * textmodes/flyspell.el (flyspell-external-point-words): Use local var buffer-scan-pos to advance scan for next misspelling. Advance it only after we find the misspelling. diff --git a/lisp/files.el b/lisp/files.el index bb2342c2cef..0522f47f15f 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2565,8 +2565,9 @@ However, the mode will not be changed if (defun set-visited-file-name (filename &optional no-query along-with-file) "Change name of file visited in current buffer to FILENAME. +This also renames the buffer to correspond to the new file. The next time the buffer is saved it will go in the newly specified file. -FILENAME nil or an empty string means make buffer not be visiting any file. +FILENAME nil or an empty string means mark buffer as not visiting any file. Remember to delete the initial contents of the minibuffer if you wish to pass an empty string as the argument. -- 2.39.5