GNU bug report logs - #50383
28.0.50; [PATCH] Feature suggestion, gnus-article-toggle-fonts to toggle fonts for HTML articles

Previous Next

Package: emacs;

Reported by: Alex Bochannek <alex <at> bochannek.com>

Date: Sat, 4 Sep 2021 20:55:01 UTC

Severity: normal

Tags: patch

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 50383 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alex Bochannek <alex <at> bochannek.com>
Cc: 50383 <at> debbugs.gnu.org
Subject: Re: bug#50383: 28.0.50; [PATCH] Feature suggestion,
 gnus-article-toggle-fonts to toggle fonts for HTML articles
Date: Sun, 05 Sep 2021 12:06:19 +0200
Alex Bochannek <alex <at> bochannek.com> writes:

> I am proposing the below `gnus-article-toggle-fonts' function with a
> keybinding of `W D F'.

Sounds good to me.


[...]

> +          (setq-local gnus-article-shr-use-fonts
> +                      (not gnus-article-shr-use-fonts))

[...]

> The patch did not keep the fonts toggled when selecting the next message
> or reloading the current one. I am proposing the below change. I am not
> sure how you feel about buffer-local Gnus variables in `mm-decode.el',
> so please let me know if an alternative approach would be better.

Yeah, it would be best to avoid doing that.  How about changing the
patch to have a buffer-local `shr-use-fonts' in the Gnus article buffer
and use that instead?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 252 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.