Next: buffer-file-truename—a permanent buffer-local variable, Previous: buffer-file-name, Up: Buffer Names and File Names [Index]
This buffer-local variable contains the name of the file being visited in the current buffer, or ‘nil’ if it is not visiting a file.
Use set-visited-file-name
to change this variable’s value.