Next: , Previous: , Up: Buffer Names and File Names   [Index]


7.4.5.7 buffer-file-name—a permanent buffer-local variable

Variable: buffer-file-name

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.