GNU bug report logs - #25653
25.1.91; buffer-file-name reports non-existing file

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Wed, 8 Feb 2017 09:01:02 UTC

Severity: minor

Tags: notabug, wontfix

Found in version 25.1.91

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1.91; buffer-file-name reports non-existing file
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.






This bug report was last modified 8 years and 160 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.