When trying to run it I get
M-x buffer-file-name [No match]
But it has a function help entry via
C-h f and I can evaluate it with
M-: buffer-file-name. So why isn't it accessible via
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
buffer-file-name is a function, but not an interactive command.
execute-extended-command, so can't be used on non-command functions.
For more information, see What is the difference between a function and a command?.