mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-01-30 12:22:31 -08:00
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". |
||
|---|---|---|
| .. | ||
| autoloads.el | ||
| buffers.el | ||
| config.el | ||
| debug.el | ||
| docs.el | ||
| files.el | ||
| fonts.el | ||
| git.el | ||
| help.el | ||
| packages.el | ||
| plist.el | ||
| print.el | ||
| process.el | ||
| projects.el | ||
| sandbox.el | ||
| scratch.el | ||
| sessions.el | ||
| store.el | ||
| system.el | ||
| text.el | ||
| themes.el | ||
| ui.el | ||