diff options
| author | Chong Yidong | 2013-12-18 22:54:24 +0800 |
|---|---|---|
| committer | Chong Yidong | 2013-12-18 22:54:24 +0800 |
| commit | 18874304db15434bbc2a9bcf28b71c86f6dc4bd8 (patch) | |
| tree | 04449208d9aee204721abc8754054cd92cb26f9b /lisp | |
| parent | b2984e39fcacc5acc5c1d74029505cba3f040196 (diff) | |
| download | emacs-18874304db15434bbc2a9bcf28b71c86f6dc4bd8.tar.gz emacs-18874304db15434bbc2a9bcf28b71c86f6dc4bd8.zip | |
* customize.texi (Custom Themes): Document custom-known-themes.
* custom.el (custom-available-themes): Doc fix.
Fixes: debbugs:15717
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/custom.el | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index efb12d34d54..e8bd967c0f2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | * custom.el (custom-push-theme): If custom--inhibit-theme-enable | 11 | * custom.el (custom-push-theme): If custom--inhibit-theme-enable |
| 12 | is non-nil, do not create a new entry in the symbol's theme-value | 12 | is non-nil, do not create a new entry in the symbol's theme-value |
| 13 | or theme-face property; update theme-settings only (Bug#14664). | 13 | or theme-face property; update theme-settings only (Bug#14664). |
| 14 | (custom-available-themes): Doc fix. | ||
| 14 | 15 | ||
| 15 | * cus-theme.el (custom-new-theme-mode-map): Add bindings | 16 | * cus-theme.el (custom-new-theme-mode-map): Add bindings |
| 16 | (Bug#15674). | 17 | (Bug#15674). |
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." | |||
| 1277 | (eq name 'changed))))) | 1277 | (eq name 'changed))))) |
| 1278 | 1278 | ||
| 1279 | (defun custom-available-themes () | 1279 | (defun custom-available-themes () |
| 1280 | "Return a list of available Custom themes (symbols)." | 1280 | "Return a list of Custom themes available for loading. |
| 1281 | Search the directories specified by `custom-theme-load-path' for | ||
| 1282 | files named FOO-theme.el, and return a list of FOO symbols. | ||
| 1283 | |||
| 1284 | The returned symbols may not correspond to themes that have been | ||
| 1285 | loaded, and no effort is made to check that the files contain | ||
| 1286 | valid Custom themes. For a list of loaded themes, check the | ||
| 1287 | variable `custom-known-themes'." | ||
| 1281 | (let (sym themes) | 1288 | (let (sym themes) |
| 1282 | (dolist (dir (custom-theme--load-path)) | 1289 | (dolist (dir (custom-theme--load-path)) |
| 1283 | (when (file-directory-p dir) | 1290 | (when (file-directory-p dir) |