fix(spacemacs-buffer): replace y-or-n question by a warning
Closes #15907
This commit is contained in:
parent
5b8a25a6b7
commit
cf021951b7
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue