fix(spacemacs-buffer): replace y-or-n question by a warning

Closes #15907
This commit is contained in:
Lucius Hu 2023-02-06 17:02:15 -05:00
parent 5b8a25a6b7
commit cf021951b7
No known key found for this signature in database
GPG Key ID: 7E474E82E29B5A7A
1 changed files with 4 additions and 3 deletions

View File

@ -1297,9 +1297,10 @@ LIST-SIZE is specified in `dotspacemacs-startup-lists' for recent entries."
;; to load `org-agenda' to process the list. If org is
;; already loaded, then we assume that the user has
;; already called org-agenda-files.
(when (and (not (featurep 'org))
(y-or-n-p "`org-agenda-files' is a string and \
not a list. Load `org' and continue?"))
(when (not (featurep 'org))
(warn "`org-agenda-files' is a string and \
not a list. This requires us to load `org' to process the org agenda files in \
startup list.")
(require 'org)
(org-agenda-files))))))
(mapcar #'expand-file-name files)))