From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57639: [PATCH] Add new command 'toggle-theme' Date: Wed, 19 Oct 2022 08:21:54 -0400 Message-ID: References: <875yhzmz25.fsf@posteo.net> <87tu50nca7.fsf@posteo.net> <87a6652lyb.fsf@posteo.net> <875ygtqdho.fsf@gnus.org> <87wn99114w.fsf@posteo.net> <87wn98nlhq.fsf@gnus.org> <87lepo9c1e.fsf@posteo.net> <87r0zfkxzx.fsf@gnus.org> <87pmeyg24x.fsf@posteo.net> <87edvef8nc.fsf@gnus.org> <871qre2l63.fsf@posteo.net> <875ygqf7pc.fsf@gnus.org> <87r0ze15rt.fsf@posteo.net> <871qref5mq.fsf@gnus.org> <875ygohztx.fsf@posteo.net> <83tu489fm6.fsf@gnu.org> <8735bs3ta0.fsf@posteo.net> <87ilkn3jgj.fsf@posteo.net> <87ilkg472a.fsf@posteo.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5205"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , 57639@debbugs.gnu.org, Stefan Kangas , larsi@gnus.org, info@protesilaos.com To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 14:23:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ol86T-00014I-Tc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 14:23:22 +0200 Original-Received: from localhost ([::1]:50710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol86Q-0004tp-Lq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 08:23:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol86A-0004td-66 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 08:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ol869-0004xu-UD for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 08:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ol869-0007Px-Mb for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 08:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2022 12:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57639 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 57639-submit@debbugs.gnu.org id=B57639.166618212528417 (code B ref 57639); Wed, 19 Oct 2022 12:23:01 +0000 Original-Received: (at 57639) by debbugs.gnu.org; 19 Oct 2022 12:22:05 +0000 Original-Received: from localhost ([127.0.0.1]:56092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol85E-0007OH-W3 for submit@debbugs.gnu.org; Wed, 19 Oct 2022 08:22:05 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:48928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol85C-0007NP-Qs for 57639@debbugs.gnu.org; Wed, 19 Oct 2022 08:22:03 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 48E70100189; Wed, 19 Oct 2022 08:21:57 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B70081000DC; Wed, 19 Oct 2022 08:21:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1666182115; bh=1MH2OWgN2AYXBSx1PUVHUhw2sV7rqy+mDeIMhhQry40=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=URZ//eeIRjo94+8iuZ5XZq0XcX2exsb0sbHeElzJVOl6SJd6dKYN3HaJ10/+BV1uf Tx90FnHmaHLX2sVMBst1OGbd9clVwMTBNAd71jOBuDqon0S9iAGubE4pfwSgysvwAF ijrrNj7IJThO+1/cShzU0s/Z61V+Mv+Gd0LAfzZ23ekVZp4EiZ+hAAZIm8mT4DfofE a73qZeaLXUFAfaiiwOw0IUSeT1X2duicRxKsY0ARrLmzKW5LDfpEAs442Fn9aZPkTJ VFS9lhitRnk3yF47uP3nBuGyjDW0qMwVqbetoB/CJoHWJ9okNMVRnh97q6AZfP3lLZ 5fsweyyAtSM4Q== Original-Received: from pastel (65-110-220-202.cpe.pppoe.ca [65.110.220.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5330D12065C; Wed, 19 Oct 2022 08:21:55 -0400 (EDT) In-Reply-To: <87ilkg472a.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 19 Oct 2022 07:16:13 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245867 Archived-At: Philip Kaludercic [2022-10-19 07:16:13] wrote: > Stefan Monnier writes: >>> The fundamental issue that necessitates boilerplate is that packages are >>> not added to the theme load path, and adding a new cookie type doesn't >>> change that. >> We could arrange for `autoload/loaddefs-gen` to recognize `deftheme` and >> add the directory containing the file containing this `deftheme` to the >> `custom-theme-load-path`. > For packages installed using package.el or in general? In general. For those few built-in themes, it would mean we'd repeatedly add the same dir to `custom-theme-load-path`, which is inefficient, but this inefficiency should be completely harmless (it's paid for during the preload). > If this is possible I think this would be a nice idea. It should be easy to do. Stefan