Closed lafrenierejm closed 4 years ago
Hi, thanks.
Before filename
defaulted to (buffer-file-name)
and only used the cond
to get the file's name if (buffer-file-name)
was nil
. Now (buffer-file-name)
is never used and one cannot get a link to the file in the buffer.
Thank you for catching that oversight. It should be fixed now.
@sshaw Would you like me to squash my commits?
Hi yes please squash but... let me test first. Give me a day. Sadly I have no automated tests here. 😢
@lafrenierejm I have not forgotten. Will review in Nov!
@sshaw What would you think of my just removing the default-directory
fallback for now? I can revisit that in a separate PR.
Hi, sorry missed your last comment. Give me 24 hours to get caught up. Feel free to harass me if I don't get back to you... ⏳
What would you think of my just removing the default-directory fallback for now?
Sounds good 👍. Please squash into a single commit, thanks.
Closing. Feel free to reopen with updated changes.
This provides a cleaner, more functional approach than the existing
setq
-heavy implementation. Additionally, a fallback ofdefault-directory
(which is guaranteed to exist) will be used if no other method of obtaining the filename is valid.