Use buffer-file-name instead of buffer-name