From 1aa28d9148d5377211ca425c826258e0d2d40c10 Mon Sep 17 00:00:00 2001 From: Lucius Hu <1222865+lebensterben@users.noreply.github.com> Date: Wed, 13 Jul 2022 03:18:18 +0000 Subject: [PATCH] core-spacemacs-buffer: fixed a bug There is an unreported bug that when startup list is set to shown `recents-by-project`, Emacs reports that `projectile-mode` is an unknown symbol. This commit fixed this bug by checking the existence of `projectile-mode`, which is automatically loaded during startup. --- core/core-spacemacs-buffer.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-spacemacs-buffer.el b/core/core-spacemacs-buffer.el index 101895ec4..7dca57888 100644 --- a/core/core-spacemacs-buffer.el +++ b/core/core-spacemacs-buffer.el @@ -1386,7 +1386,8 @@ SEQ, START and END are the same arguments as for `cl-subseq'" (spacemacs-buffer//insert-errors) (spacemacs-buffer//insert-warnings)) ((eq el 'recents) (spacemacs-buffer//insert-recent-files list-size)) - ((eq el 'recents-by-project) + ((and (eq el 'recents-by-project) + (fboundp 'projectile-mode)) (spacemacs-buffer//insert-recent-files-by-project list-size)) ((eq el 'todos) (spacemacs-buffer//insert-todos list-size)) ((eq el 'agenda) (spacemacs-buffer//insert-agenda list-size))