mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-13 13:13:35 -05:00
Fix wrong-type-arg: stringp, nocache errors
Fix old usage of doom-project-name and doom-project-root.
This commit is contained in:
@@ -552,8 +552,7 @@ This be hooked to `projectile-after-switch-project-hook'."
|
||||
(if (+workspace-buffer-list)
|
||||
(let* (persp-p
|
||||
(persp
|
||||
(let* ((default-directory +workspaces--project-dir)
|
||||
(project-name (doom-project-name 'nocache)))
|
||||
(let ((project-name (doom-project-name +workspaces--project-dir)))
|
||||
(or (setq persp-p (+workspace-get project-name t))
|
||||
(+workspace-new project-name))))
|
||||
(new-name (persp-name persp)))
|
||||
@@ -569,7 +568,7 @@ This be hooked to `projectile-after-switch-project-hook'."
|
||||
'success))
|
||||
(with-current-buffer (switch-to-buffer (doom-fallback-buffer))
|
||||
(setq default-directory +workspaces--project-dir)
|
||||
(message "Switched to '%s'" (doom-project-name 'nocache)))
|
||||
(message "Switched to '%s'" (doom-project-name +workspaces--project-dir)))
|
||||
(unless current-prefix-arg
|
||||
(funcall +workspaces-switch-project-function +workspaces--project-dir)))
|
||||
(setq +workspaces--project-dir nil))))
|
||||
|
Reference in New Issue
Block a user