GNU bug report logs - #77539
31.0.50; nnatom: missing content in articles.

Previous Next

Package: emacs;

Reported by: Fernando de Morais <fernandodemorais.jf <at> gmail.com>

Date: Fri, 4 Apr 2025 18:35:01 UTC

Severity: normal

Found in version 31.0.50

Full log


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

From: Daniel Semyonov <daniel <at> dsemy.com>
To: Fernando de Morais <fernandodemorais.jf <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: 31.0.50; nnatom: missing content in articles.
Date: Sat, 05 Apr 2025 01:40:54 +0300
[Message part 1 (text/plain, inline)]
>>>>> Fernando de Morais writes:

    > When accessing certain feeds with `nnatom', it is possible to notice the
    > absence of characters such as curly quotes.

    > To reproduce, which is possible with `emacs -Q', please:

    > 1. M-x load-library RET gnus RET
    > 2. M-x gnus
    > 3. In the groups buffer:
    >    - press B (shift+b), then type nnatom and insert the address
    >      planet.emcaslife.com/atom.xml then RET
    > 4. In the browse server buffer, RET and select an article with RET

    > Results in:

    >         - It should be noticeable that curly quotes are missing from the
    >           text.  This can be validated by opening the original article
    >           link in a browser.

I think those characters disappear due to the text being HTML, which
causes Gnus to display it differently.
AFAICT, the characters do appear in the body of the text saved by nnatom.

    > Additionally, in feeds like YouTube channels, the link to the video is
    > missing.  It is also possible to reproduce this with `emacs -Q' by
    > following the steps described above, but change the address to (Prot's
    > channel):

    > - www.youtube.com/feeds/videos.xml?channel_id=UC0uTPqBCFIpZxlz_Lv1tk_g

    > Results in:

    >         - Instead of the link, the content of the article is:
    >           (nil (Content-Type . text/html) links)

YouTube "articles" should actually contain two links, a link to the
channel and the video; unfortunately even though I remember testing this
it seems I made a typo and any article with an empty body (other than
links) will be broken in this way.
Attached a patch which fixes this.

Daniel

[0001-nnatom-Fix-parsing-of-empty-articles.patch (text/x-patch, attachment)]

This bug report was last modified 2 days ago.

Previous Next


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