diff options
| author | Mauro Aranda | 2021-05-19 09:57:46 -0300 |
|---|---|---|
| committer | Mauro Aranda | 2021-05-19 09:57:46 -0300 |
| commit | 61291e06cc804de2075305c220d31ef6072f28c8 (patch) | |
| tree | fa61c287bad402389092c8ecec838a5342cbb964 | |
| parent | 567c31121fdef6bdc8b645999a6ca1d994378c89 (diff) | |
| download | emacs-61291e06cc804de2075305c220d31ef6072f28c8.tar.gz emacs-61291e06cc804de2075305c220d31ef6072f28c8.zip | |
Lift restriction for finding theme summary line
* lisp/cus-theme.el (custom-theme-summary): Don't limit the file to
having the deftheme form as the very first form, rather look for the
deftheme form explicitly.
| -rw-r--r-- | lisp/cus-theme.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/cus-theme.el b/lisp/cus-theme.el index 13fb9f34fa0..dfa22264037 100644 --- a/lisp/cus-theme.el +++ b/lisp/cus-theme.el | |||
| @@ -657,10 +657,12 @@ Theme files are named *-theme.el in `")) | |||
| 657 | (insert-file-contents fn) | 657 | (insert-file-contents fn) |
| 658 | (let ((sexp (let ((read-circle nil)) | 658 | (let ((sexp (let ((read-circle nil)) |
| 659 | (condition-case nil | 659 | (condition-case nil |
| 660 | (read (current-buffer)) | 660 | (progn |
| 661 | (end-of-file nil))))) | 661 | (re-search-forward "^(deftheme") |
| 662 | (and (eq (car-safe sexp) 'deftheme) | 662 | (beginning-of-line) |
| 663 | (setq doc (nth 2 sexp)))))))) | 663 | (read (current-buffer))) |
| 664 | (error nil))))) | ||
| 665 | (setq doc (nth 2 sexp))))))) | ||
| 664 | (cond ((null doc) | 666 | (cond ((null doc) |
| 665 | "(no documentation available)") | 667 | "(no documentation available)") |
| 666 | ((string-match ".*" doc) | 668 | ((string-match ".*" doc) |