From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#57639: [PATCH] Add new command 'toggle-theme' Date: Tue, 11 Oct 2022 09:06:54 +0000 Message-ID: <87pmeyg24x.fsf@posteo.net> References: <875yhzmz25.fsf@posteo.net> <8735coewsk.fsf@posteo.net> <871qs7ztgq.fsf@gnus.org> <87o7vbg56k.fsf@posteo.net> <874jx3ye41.fsf@gnus.org> <87bkrbfz8l.fsf@posteo.net> <871qs5lpo2.fsf@posteo.net> <87mtatagzv.fsf@gnus.org> <87edw5n2zm.fsf@posteo.net> <87o7v97zy2.fsf@gnus.org> <87bkr9newj.fsf@posteo.net> <871qs57yai.fsf@gnus.org> <87y1udlzlt.fsf@posteo.net> <87o7v953uf.fsf@gnus.org> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6949"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 57639@debbugs.gnu.org, Protesilaos Stavrou To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 11 11:08:26 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 1oiBFS-0001Zg-2N for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 11:08:26 +0200 Original-Received: from localhost ([::1]:41638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiBFR-0002HM-0y for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 05:08:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiBF5-0002GH-Ml for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 05:08:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51803) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiBF4-0004eU-Cn for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 05:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiBF4-00020S-7d for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 05:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2022 09:08:02 +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.16654792307650 (code B ref 57639); Tue, 11 Oct 2022 09:08:02 +0000 Original-Received: (at 57639) by debbugs.gnu.org; 11 Oct 2022 09:07:10 +0000 Original-Received: from localhost ([127.0.0.1]:50881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiBED-0001zK-VZ for submit@debbugs.gnu.org; Tue, 11 Oct 2022 05:07:10 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:38159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiBEC-0001z7-1i for 57639@debbugs.gnu.org; Tue, 11 Oct 2022 05:07:08 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7601924002A for <57639@debbugs.gnu.org>; Tue, 11 Oct 2022 11:06:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665479221; bh=VXEOcrZTKK5S4FBpXyPPsZ7Ab0dDBO1+HjwctN9fj+o=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=WBYjXk/bj0iMjf9F1G4aO569Jkx0xGHdBPN+fagQxkoTa7YMqCd7aNv5Nf6MrOk52 ni+0MBs6I1ORjG/Jlw5mgd+aJvvP4tmhy4rl9f1+Ac3npSWqU4tJLUlBFMVH59U3KE Nwrzuj0RvgZJa47jv2k1Lk/6MQ1lc+fdnIbIpBIEMqFCRnj/nhrakaGEL7kUmy1QmQ 1J5c0qLBkiZLIiKphiEpH8Be6wrZYCgNDhC8+z9gKwI5THjwYjeLmSLCE4oW4kLSGc LWVR5TxGVB/Et4f3B2MLmB9RYwiQxVlOTD/VKrZY+e7EmUgGT9lG+/7Q8quIhVRKWy dBzPVo0oRLmOw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MmqfR4zqXz9rxN; Tue, 11 Oct 2022 11:06:55 +0200 (CEST) In-Reply-To: <87r0zfkxzx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 11 Oct 2022 02:25:06 +0200") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB 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:245098 Archived-At: Lars Ingebrigtsen writes: > Philip Kaludercic writes: > >> I am not sure how that is done exactly, but if we take the >> ";;;###theme-autoload" approach it should be able to have a handler to >> convert autoloaded (defcustom ...) forms in to (put ...) ones: > > Yes. But as noted before, since many themes are distributed via ELPA > (too), we can't really change the definition of deftheme. The change to `deftheme' is only a feature of convenience, the backwards-compatibile way to set the attributes remains using `put'. In fact, that `put'-expression is exactly what `deftheme' expands to.