if (buffer-name) is nil, use default-directory