From 18874304db15434bbc2a9bcf28b71c86f6dc4bd8 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 18 Dec 2013 22:54:24 +0800 Subject: * customize.texi (Custom Themes): Document custom-known-themes. * custom.el (custom-available-themes): Doc fix. Fixes: debbugs:15717 --- lisp/custom.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lisp/custom.el') 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) -- cgit v1.2.1