unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#69651: 30.0.50; Theme-agnostic hook for theme loading
@ 2024-03-08 13:54 Andrea Ciceri via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-09  9:39 ` Visuwesh
  2024-03-11  9:38 ` bug#69651: Closing " andrea.ciceri--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 4+ messages in thread
From: Andrea Ciceri via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-08 13:54 UTC (permalink / raw)
  To: 69651; +Cc: jdtsmith


Modus themes provide an hook for theme loading and the manual even
suggests a way to implement an agnostic hook that works for all the
themes using advices:

https://www.gnu.org/software/emacs/manual/html_node/modus-themes/A-theme_002dagnostic-hook-for-theme-loading.html

Why isn't such an hook provided upstream?

This is the first time I use the GNU bugs tracker and this is more like
a "kind request" than bug, I hope I did everything correctly.

If you confirm that it makes sense and should be added then I can try to
send a patch by myself (I'm not familiar with Emacs internals so
probably I need to figure out where this should be added before).

Thanks!


Andrea





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#69651: 30.0.50; Theme-agnostic hook for theme loading
  2024-03-08 13:54 bug#69651: 30.0.50; Theme-agnostic hook for theme loading Andrea Ciceri via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-03-09  9:39 ` Visuwesh
  2024-03-09  9:54   ` Protesilaos Stavrou
  2024-03-11  9:38 ` bug#69651: Closing " andrea.ciceri--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 4+ messages in thread
From: Visuwesh @ 2024-03-09  9:39 UTC (permalink / raw)
  To: Andrea Ciceri; +Cc: jdtsmith, 69651

[வெள்ளி மார்ச் 08, 2024] Andrea Ciceri via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:

> Modus themes provide an hook for theme loading and the manual even
> suggests a way to implement an agnostic hook that works for all the
> themes using advices:
>
> https://www.gnu.org/software/emacs/manual/html_node/modus-themes/A-theme_002dagnostic-hook-for-theme-loading.html
>
> Why isn't such an hook provided upstream?

enable-theme-functions added in Emacs 29.1 already does the job AFAIU.

> This is the first time I use the GNU bugs tracker and this is more like
> a "kind request" than bug, I hope I did everything correctly.
>
> If you confirm that it makes sense and should be added then I can try to
> send a patch by myself (I'm not familiar with Emacs internals so
> probably I need to figure out where this should be added before).
>
> Thanks!
>
>
> Andrea





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#69651: 30.0.50; Theme-agnostic hook for theme loading
  2024-03-09  9:39 ` Visuwesh
@ 2024-03-09  9:54   ` Protesilaos Stavrou
  0 siblings, 0 replies; 4+ messages in thread
From: Protesilaos Stavrou @ 2024-03-09  9:54 UTC (permalink / raw)
  To: Visuwesh, Andrea Ciceri; +Cc: 69651, jdtsmith

> From: Visuwesh <visuweshm@gmail.com>
> Date: Sat,  9 Mar 2024 15:09:49 +0530
>
> [வெள்ளி மார்ச் 08, 2024] Andrea Ciceri via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:
>
>> Modus themes provide an hook for theme loading and the manual even
>> suggests a way to implement an agnostic hook that works for all the
>> themes using advices:
>>
>> https://www.gnu.org/software/emacs/manual/html_node/modus-themes/A-theme_002dagnostic-hook-for-theme-loading.html
>>
>> Why isn't such an hook provided upstream?
>
> enable-theme-functions added in Emacs 29.1 already does the job AFAIU.

Indeed. The updated version of the modus-themes manual mentions this. I
have not published the new version yet, so it is not part of Emacs 30
and all the relevant GNU web pages. It is on my website though (which to
me is the canonical source, as I maintain it): https://protesilaos.com/emacs/modus-themes

-- 
Protesilaos Stavrou
https://protesilaos.com





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#69651: Closing bug#69651: 30.0.50; Theme-agnostic hook for theme loading
  2024-03-08 13:54 bug#69651: 30.0.50; Theme-agnostic hook for theme loading Andrea Ciceri via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-09  9:39 ` Visuwesh
@ 2024-03-11  9:38 ` andrea.ciceri--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 4+ messages in thread
From: andrea.ciceri--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-11  9:38 UTC (permalink / raw)
  To: 69651-done

I'm using enable-theme-functions now and it works as expected.
Thank you both!





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-11  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-08 13:54 bug#69651: 30.0.50; Theme-agnostic hook for theme loading Andrea Ciceri via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-09  9:39 ` Visuwesh
2024-03-09  9:54   ` Protesilaos Stavrou
2024-03-11  9:38 ` bug#69651: Closing " andrea.ciceri--- via Bug reports for GNU Emacs, the Swiss army knife of text editors

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).