Subject: 25.1.91; buffer-file-name reports non-existing file

From: Andreas Röhler <[email-masked]>
Date: Wed, 8 Feb 2017 10:10:55 +0100

Emacs -Q

Open some non-existing foo.py

Before saving

M-x buffer-file-name RET reports PATH-to/foo.py as buffer-file-name.

IMO buffer-file-name only should get a value different from nil, if the 
buffer is connected with an existing file, as docu says:

Return name of file BUFFER is visiting, or nil if none.