diff options
author | Chong Yidong <cyd@gnu.org> | 2013-12-18 22:54:24 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2013-12-18 22:54:24 +0800 |
commit | 18874304db15434bbc2a9bcf28b71c86f6dc4bd8 (patch) | |
tree | 04449208d9aee204721abc8754054cd92cb26f9b /lisp/custom.el | |
parent | b2984e39fcacc5acc5c1d74029505cba3f040196 (diff) | |
download | emacs-18874304db15434bbc2a9bcf28b71c86f6dc4bd8.tar.gz |
* customize.texi (Custom Themes): Document custom-known-themes.
* custom.el (custom-available-themes): Doc fix.
Fixes: debbugs:15717
Diffstat (limited to 'lisp/custom.el')
-rw-r--r-- | lisp/custom.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/custom.el b/lisp/custom.el index 1d00dda0168..43775a16911 100644 --- a/lisp/custom.el +++ b/lisp/custom.el @@ -1277,7 +1277,14 @@ NAME should be a symbol." (eq name 'changed))))) (defun custom-available-themes () - "Return a list of available Custom themes (symbols)." + "Return a list of Custom themes available for loading. +Search the directories specified by `custom-theme-load-path' for +files named FOO-theme.el, and return a list of FOO symbols. + +The returned symbols may not correspond to themes that have been +loaded, and no effort is made to check that the files contain +valid Custom themes. For a list of loaded themes, check the +variable `custom-known-themes'." (let (sym themes) (dolist (dir (custom-theme--load-path)) (when (file-directory-p dir) |