diff --git a/core/core-dotspacemacs.el b/core/core-dotspacemacs.el index c17e04da4..e4d453e47 100644 --- a/core/core-dotspacemacs.el +++ b/core/core-dotspacemacs.el @@ -890,17 +890,18 @@ Called with `C-u C-u' skips `dotspacemacs/user-config' _and_ preliminary tests." (when (configuration-layer/package-used-p 'spaceline) (spacemacs//restore-buffers-powerline))) -(defun dotspacemacs/get-variable-string-list () - "Return a list of all the dotspacemacs variables as strings." - (all-completions "dotspacemacs" obarray - (lambda (x) - (and (boundp x) - ;; avoid private variables to show up - (not (string-match-p "--" (symbol-name x))))))) +(eval-and-compile + (defun dotspacemacs/get-variable-string-list () + "Return a list of all the dotspacemacs variables as strings." + (all-completions "dotspacemacs" obarray + (lambda (x) + (and (boundp x) + ;; avoid private variables to show up + (not (string-match-p "--" (symbol-name x))))))) -(defun dotspacemacs/get-variable-list () - "Return a list of all dotspacemacs variable symbols." - (mapcar 'intern (dotspacemacs/get-variable-string-list))) + (defun dotspacemacs/get-variable-list () + "Return a list of all dotspacemacs variable symbols." + (mapcar 'intern (dotspacemacs/get-variable-string-list)))) (defmacro dotspacemacs|symbol-value (symbol) "Return the value of SYMBOL corresponding to a dotspacemacs variable. diff --git a/core/core-spacemacs-buffer.el b/core/core-spacemacs-buffer.el index 4115bec6a..bfe5b59cb 100644 --- a/core/core-spacemacs-buffer.el +++ b/core/core-spacemacs-buffer.el @@ -805,19 +805,20 @@ If MESSAGEBUF is not nil then MSG is also written in message buffer." (when messagebuf (message "(Spacemacs) %s" msg))))) -(defun spacemacs-buffer//startup-list-jump-func-name (str) - "Given a string, return a spacemacs-buffer function name. +(eval-and-compile + (defun spacemacs-buffer//startup-list-jump-func-name (str) + "Given a string, return a spacemacs-buffer function name. Given: Return: \"[?]\" \"spacemacs-buffer/jump-to-[?]\" \"Recent Files:\" \"spacemacs-buffer/jump-to-recent-files\"" - (let ((s (downcase str))) - ;; remove last char if it's a colon - (when (string-match ":$" s) - (setq s (substring s nil (1- (length s))))) - ;; replace any spaces with a dash - (setq s (replace-regexp-in-string " " "-" s)) - (concat "spacemacs-buffer/jump-to-" s))) + (let ((s (downcase str))) + ;; remove last char if it's a colon + (when (string-match ":$" s) + (setq s (substring s nil (1- (length s))))) + ;; replace any spaces with a dash + (setq s (replace-regexp-in-string " " "-" s)) + (concat "spacemacs-buffer/jump-to-" s)))) (defmacro spacemacs-buffer||add-shortcut (shortcut-char search-label &optional no-next-line)