Next: , Previous: , Up: Saving Files   [Index]


7.3.3.4 set-visited-file-name

Function: 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 mark buffer as not visiting any file.

The optional second argument NO-QUERY, if non-nil, inhibits asking for confirmation in the case where another buffer is already visiting FILENAME.

The optional third argument ALONG-WITH-FILE, if non-nil, means that the old visited file has been renamed to the new name FILENAME.