From: Mauro Aranda <maurooaranda@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: thievol@posteo.net, 65468@debbugs.gnu.org,
Protesilaos Stavrou <info@protesilaos.com>
Subject: bug#65468: 29.1; describe-theme fails to describe some themes not loaded
Date: Thu, 24 Aug 2023 07:16:10 -0300 [thread overview]
Message-ID: <ca5bee64-fb0d-845b-4c72-7fcbb6d08c4a@gmail.com> (raw)
In-Reply-To: <83bkeyrmy1.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 903 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
>> Cc: 65468@debbugs.gnu.org
>> Date: Wed, 23 Aug 2023 06:53:03 -0300
>> From: Mauro Aranda <maurooaranda@gmail.com>
>>
>> Thierry Volpiatto <thievol@posteo.net> writes:
>>
>> > This because `describe-theme-1` is not looping in buffer to find
>> > `deftheme` definition.
>>
>> It is a convention that the first form should be a call to deftheme.
>> But it seems built-in themes have deviated from that convention. And
>> other themes might as well, I don't know.
>>
>> >
>> > Try (describe-theme 'leuven) to reproduce (if not already loaded of
>> course).
>> >
>>
>> At least for the leuven themes, it should be easy to make them follow
>> the convention.
>
> I think we should indeed fix the themes that come with Emacs.
Here's a patch for the leuven themes. And I'm CCing Prot so he can take
a look to adjust the modus-themes.
[-- Attachment #2: 0001-Adjust-built-in-themes-to-convention-Bug-65468.patch --]
[-- Type: text/x-patch, Size: 2505 bytes --]
From ab417284f27d172cc95f4c735f28bdfd6366817b Mon Sep 17 00:00:00 2001
From: Mauro Aranda <maurooaranda@gmail.com>
Date: Thu, 24 Aug 2023 07:12:41 -0300
Subject: [PATCH] Adjust built-in themes to convention (Bug#65468)
* etc/themes/leuven-dark-theme.el
* etc/themes/leuven-theme.el: Make the deftheme call the first form.
---
etc/themes/leuven-dark-theme.el | 20 ++++++++++----------
etc/themes/leuven-theme.el | 20 ++++++++++----------
2 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/etc/themes/leuven-dark-theme.el b/etc/themes/leuven-dark-theme.el
index 33a15945e71..a2445896ea6 100644
--- a/etc/themes/leuven-dark-theme.el
+++ b/etc/themes/leuven-dark-theme.el
@@ -39,6 +39,16 @@
;;; Code:
+;;;###theme-autoload
+(deftheme leuven-dark
+ "Face colors with a dark background.
+Basic, Font Lock, Isearch, Gnus, Message, Org mode, Diff, Ediff,
+Flyspell, Semantic, and Ansi-Color faces are included -- and much
+more..."
+ :background-mode 'dark
+ :family 'leuven
+ :kind 'color-scheme)
+
;;; Options.
(defgroup leuven-dark nil
@@ -93,16 +103,6 @@ leuven-dark-scale-font
;;; Theme Faces.
-;;;###theme-autoload
-(deftheme leuven-dark
- "Face colors with a dark background.
-Basic, Font Lock, Isearch, Gnus, Message, Org mode, Diff, Ediff,
-Flyspell, Semantic, and Ansi-Color faces are included -- and much
-more..."
- :background-mode 'dark
- :family 'leuven
- :kind 'color-scheme)
-
(let ((class '((class color) (min-colors 89)))
;; Leuven generic colors.
diff --git a/etc/themes/leuven-theme.el b/etc/themes/leuven-theme.el
index f7d454381d7..3d8d0d49b36 100644
--- a/etc/themes/leuven-theme.el
+++ b/etc/themes/leuven-theme.el
@@ -38,6 +38,16 @@
;;; Code:
+;;;###theme-autoload
+(deftheme leuven
+ "Face colors with a light background.
+Basic, Font Lock, Isearch, Gnus, Message, Org mode, Diff, Ediff,
+Flyspell, Semantic, and Ansi-Color faces are included -- and much
+more..."
+ :background-mode 'light
+ :kind 'color-scheme
+ :family 'leuven)
+
;;; Options.
(defgroup leuven nil
@@ -74,16 +84,6 @@ leuven-scale-font
;;; Theme Faces.
-;;;###theme-autoload
-(deftheme leuven
- "Face colors with a light background.
-Basic, Font Lock, Isearch, Gnus, Message, Org mode, Diff, Ediff,
-Flyspell, Semantic, and Ansi-Color faces are included -- and much
-more..."
- :background-mode 'light
- :kind 'color-scheme
- :family 'leuven)
-
(let ((class '((class color) (min-colors 89)))
;; Leuven generic colors.
--
2.34.1
next prev parent reply other threads:[~2023-08-24 10:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-23 8:44 bug#65468: 29.1; describe-theme fails to describe some themes not loaded Thierry Volpiatto
2023-08-23 9:53 ` Mauro Aranda
2023-08-23 11:01 ` Thierry Volpiatto
2023-08-23 11:57 ` Eli Zaretskii
2023-08-24 10:16 ` Mauro Aranda [this message]
2023-08-25 3:48 ` Protesilaos Stavrou
2023-08-23 11:47 ` Eli Zaretskii
2023-08-23 13:12 ` Thierry Volpiatto
2023-08-26 7:57 ` Eli Zaretskii
2023-08-26 15:31 ` Thierry Volpiatto
2023-09-09 11:33 ` Mauro Aranda
2023-09-09 11:47 ` Eli Zaretskii
2023-09-09 11:51 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ca5bee64-fb0d-845b-4c72-7fcbb6d08c4a@gmail.com \
--to=maurooaranda@gmail.com \
--cc=65468@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=info@protesilaos.com \
--cc=thievol@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).