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: Thu, 13 Oct 2022 09:10:00 +0000 Message-ID: <87lepkgkd3.fsf@posteo.net> References: <875yhzmz25.fsf@posteo.net> <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> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14898"; 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 Thu Oct 13 11:28:40 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 1oiuW8-0003dl-HG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Oct 2022 11:28:40 +0200 Original-Received: from localhost ([::1]:34568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiuW7-00064R-3E for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Oct 2022 05:28:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiuF5-0008UF-IO for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 05:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiuF4-0002pG-C7 for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 05:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiuF4-0003wC-6r for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 05:11: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: Thu, 13 Oct 2022 09:11: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.166565221015050 (code B ref 57639); Thu, 13 Oct 2022 09:11:02 +0000 Original-Received: (at 57639) by debbugs.gnu.org; 13 Oct 2022 09:10:10 +0000 Original-Received: from localhost ([127.0.0.1]:59531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiuEE-0003ue-CV for submit@debbugs.gnu.org; Thu, 13 Oct 2022 05:10:10 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:58777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiuEC-0003uO-EU for 57639@debbugs.gnu.org; Thu, 13 Oct 2022 05:10:08 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6F56524002B for <57639@debbugs.gnu.org>; Thu, 13 Oct 2022 11:10:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665652202; bh=ZYqgKBUHvZTLj68hOVsfRc/TmWx7oZWvtUBlPOH8k2I=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=IwgKlksi9NyQQ+7cSNEke5Vbo0y1npWnYRgOY8Jl3q0QFogEdM9SDAc5y/l2ywMCO g1K0nmQ3rOWc/kv6pQH1rgAK+WUI7xPTZfT80dLbOeSJVb1mNu1qMqTlWFUMco6Qfl OGE7gZXGEHrYPY4N4CK09dmofYaCxvc4tc3SIgH1TmL8BPLVhyLQHcSnaT4gjyzdxP SP32ILNTPrMdp+ZCRwbCJK7w+FSGoHv7Z5+JisbK8PZVEA+NB/II3UJ0w9J8KRrMLI JKCCVMXuMSsZrykkjEKTXHb5xuS2gWrKMhHYWyio9Zco27zOVH1sXBPcVtifnzLG9B kGdSQ33wLSQnQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mp3d432Drz6tmb; Thu, 13 Oct 2022 11:10:00 +0200 (CEST) In-Reply-To: <875ygohztx.fsf@posteo.net> (Philip Kaludercic's message of "Thu, 13 Oct 2022 10:50:34 +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:245280 Archived-At: > From a9bc4ba6b07aef118f05022486f9fc10a0e41e64 Mon Sep 17 00:00:00 2001 > From: Philip Kaludercic > Date: Thu, 13 Oct 2022 10:43:36 +0200 > Subject: [PATCH] Handle ;;;###theme-autoload comments in etc/themes > > * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--emacs-batch): > Extract the autoloads and have them loaded along with loaddefs.el. > --- > lisp/emacs-lisp/loaddefs-gen.el | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el > index e57024aee5..39eec87f72 100644 > --- a/lisp/emacs-lisp/loaddefs-gen.el > +++ b/lisp/emacs-lisp/loaddefs-gen.el > @@ -736,7 +736,15 @@ loaddefs-generate--emacs-batch > ;; updated. > (file-newer-than-file-p > (expand-file-name "emacs-lisp/loaddefs-gen.el" lisp-directory) > - output-file)))) > + output-file))) > + (let ((lisp-mode-autoload-regexp > + "^;;;###\\(\\(noexist\\)-\\)?\\(theme-autoload\\)") > + (output-file )) I have just noticed that this variable was not used and have removed it locally. > + (loaddefs-generate > + (expand-file-name "../etc/themes/" lisp-directory) > + (expand-file-name "theme-loaddefs.el" lisp-directory)))) > + > +;;;###autoload (load "theme-loaddefs.el") > > (provide 'loaddefs-gen)