doomemacs/lisp
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
..
cli fix(cli): doctor: false positive 'X.elc is out-of-date' warnings 2022-09-26 02:09:20 +02:00
lib fix(lib): doom/delete-this-file nil path handling 2022-09-30 22:48:59 +02:00
doom-cli.el refactor(cli): reorganize CLI library 2022-09-25 17:52:07 +02:00
doom-editor.el refactor: minor refactors & commentary revision 2022-09-24 20:31:34 +02:00
doom-keybinds.el refactor: remove use-package from doom-keybinds.el 2022-09-24 22:10:02 +02:00
doom-lib.el tweak(lib): log calling hook from doom-run-hook 2022-09-24 22:10:02 +02:00
doom-modules.el fix: module load order 2022-09-29 17:35:59 +02:00
doom-packages.el fix: doom-package-list: failures to resolve module context 2022-09-26 02:08:00 +02:00
doom-profiles.el refactor: introduce doom-module-context 2022-09-24 22:09:46 +02:00
doom-projects.el nit: comment revision and formatting 2022-09-16 01:14:22 +02:00
doom-start.el refactor: introduce doom-context 2022-09-24 22:09:05 +02:00
doom-ui.el perf: move doom-init-ui-h to window-setup-hook 2022-09-24 22:10:02 +02:00
doom.el nit: mention test env for startup optimizations 2022-09-29 17:35:56 +02:00
init.el fix: add :depth field to modules 2022-09-24 18:46:21 +02:00
packages.el module: add :config use-package 2022-09-24 18:46:21 +02:00