core: filter out private vars in dotspacemacs/get-variable-string-list

This commit is contained in:
syl20bnr 2017-02-05 20:28:10 -05:00
parent d5d80eb1a1
commit be7ba7f920

View file

@ -480,8 +480,9 @@ Called with `C-u C-u' skips `dotspacemacs/user-config' _and_ preleminary tests."
(lambda (x)
(and (boundp x)
(not (keywordp x))
(string-prefix-p "dotspacemacs"
(symbol-name x))))))
;; avoid private variables to show up
(not (string-match-p "--" (symbol-name x)))
(string-prefix-p "dotspacemacs" (symbol-name x))))))
(defun dotspacemacs/get-variable-list ()
"Return a list of all dotspacemacs variable symbols."