I want to set the frame title as follows:
- When the current buffer is visiting a file, show the full path name and the Emacs version.
- When the current buffer has no file, then show the buffer name and the Emacs version.
init.el, I put
(setq-default frame-title-format (concat (if (buffer-file-name) "%f" "%b") " - " (substring (emacs-version) 0 15)))
Why doesn't my code print the file name with the full path?