From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alex Bochannek Newsgroups: gmane.emacs.bugs Subject: bug#50383: 28.0.50; [PATCH] Feature suggestion, gnus-article-toggle-fonts to toggle fonts for HTML articles Date: Tue, 07 Sep 2021 10:15:57 -0700 Message-ID: References: <87lf4bmj50.fsf@gnus.org> <87wnnuje4m.fsf@gnus.org> <87r1e0ctb4.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="18822"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 50383@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 07 19:17:15 2021 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 1mNeih-0004e4-5x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 19:17:15 +0200 Original-Received: from localhost ([::1]:47114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNeif-0005Pc-6x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 13:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNeiU-0005PP-CF for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 13:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNeiU-0001WT-4R for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 13:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNeiT-0001je-J7 for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 13:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Bochannek Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Sep 2021 17:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50383 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 50383-submit@debbugs.gnu.org id=B50383.16310349646580 (code B ref 50383); Tue, 07 Sep 2021 17:17:01 +0000 Original-Received: (at 50383) by debbugs.gnu.org; 7 Sep 2021 17:16:04 +0000 Original-Received: from localhost ([127.0.0.1]:57535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNehY-0001i4-65 for submit@debbugs.gnu.org; Tue, 07 Sep 2021 13:16:04 -0400 Original-Received: from ns.lapseofthought.com ([50.0.39.240]:54594 helo=mail.lapseofthought.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNehV-0001hQ-CS for 50383@debbugs.gnu.org; Tue, 07 Sep 2021 13:16:02 -0400 Original-Received: from awb-mbp.local (unknown [IPv6:2601:646:4200:b470:c15f:52eb:2de9:9978]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.lapseofthought.com (Postfix) with ESMTPSA id 4H3sNs6Zg0z3pf7X; Tue, 7 Sep 2021 10:15:57 -0700 (PDT) In-Reply-To: <87r1e0ctb4.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 07 Sep 2021 17:13:35 +0200") Authentication-Results: ORIGINATING; auth=pass smtp.auth=alex smtp.mailfrom=alex@bochannek.com 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:213713 Archived-At: Lars Ingebrigtsen writes: > Alex Bochannek writes: > >> I thought about it some more and I don't think it's necessary at all to >> initialize the local variable, because it will happen automatically the >> first time the command is used. The below should be enough. I tested it >> a bit and it works for me. > > Thanks, looks good to me, so I've pushed it to Emacs 28 (with a trivial > change -- I morphed the `(if .. (progn' into a `when'). Thanks! I keep forgetting that the `when' macro has an implicit `progn', which also reads nicer. -- Alex.