Files
doomemacs/lisp/lib
Ivan 850907ed9a fix(lib): doom/delete-this-file nil path handling
Fix the handling of a nil path within doom/delete-this-file.

If path is nil (e.g. called interactively when buffer is not visiting a
file), avoid calling abbreviate-file-name on nil, otherwise an error
will be signaled:

  (wrong-type-argument stringp nil)

Additionally, fix the subsequent path checks. These were treating two
distinct scenarios as a "Buffer is not visiting any file" user-error:

- nil path
- non-existent path
- Only the first should result in that error. The second should proceed
  to the next path check (which was previously unreachable), to signal
  the appropriate error, "File doesn't exist: %s".
2022-09-30 22:48:59 +02:00
..
2022-09-25 18:18:00 +02:00
2022-07-30 22:41:13 +02:00
2022-07-30 22:41:13 +02:00
2022-07-30 22:41:13 +02:00
2022-09-08 13:36:17 +02:00
2022-07-30 22:41:13 +02:00