all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Daniel Semyonov <daniel@dsemy.com>
Cc: "Mattias Engdegård" <mattias.engdegard@gmail.com>,
	"Michael Albinus" <michael.albinus@gmx.de>,
	emacs-devel@gnu.org
Subject: Re: master 1601c5a518d: Gnus: Add back end for Atom feeds (nnatom)
Date: Mon, 29 Apr 2024 13:12:55 -0700	[thread overview]
Message-ID: <87sez49bco.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87a5lc57zn.fsf@dsemy.com> (Daniel Semyonov's message of "Mon, 29 Apr 2024 21:39:08 +0300")


On 04/29/24 21:39 PM, Daniel Semyonov wrote:
>>>>>> Mattias Engdegård writes:
>
>     > 29 apr. 2024 kl. 18.42 skrev Michael Albinus <michael.albinus@gmx.de>:
>     >> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>     >> 
>     >>> This is still failing the tests, and I can't see why, I suspect the
>     >>> reason is in the "... ..." below:
>
>     > No, you should ignore that and look at the text
>
>     >> The following options might have problems:
>     >> variable: gnus-valid-select-methods
>     >> value: (...)
>     >> type: (...)
>
>
>     > that precedes the ERT error. In this case, it appears that the
>     > top-level list includes an element
>
>     >   ("nnatom" address)
>
>     > which doesn't match the declared type which requires that the
>     > string be followed by one of {post, mail, none, post-mail}.
>
>
> This should be changed to `("nnatom" none address)', and the docstring
> should probably be changed to clarify this too.

That's what I've changed it to, and it was still failing, that's why I
was trying to dig more information out of the failure.

HOWEVER. Moments ago I thought to look at nnatom.el itself, and this bit
at the bottom:

(gnus-declare-backend (symbol-name nnatom-backend) 'address)

Also ends up setting gnus-valid-select-methods, and needs the equivalent
change:

(gnus-declare-backend (symbol-name nnatom-backend) 'none 'address)

> Honestly though, I don't understand why this is a user option in the
> first place, it only seems useful if you're implementing a new backend
> (in which case, you're probably using `gnus-declare-backend', which
> modifies `gnus-valid-select-methods' without checking the value anyway).

And here you mention that exact fact :)

I agree it doesn't make much sense, it doesn't do anything for the user.
I wonder if `gnus-declare-backend' was originally just meant to be used
by out-of-tree backend libraries.

Anyway, it's redundant, but no great harm done, and the tests pass.

Eric



  reply	other threads:[~2024-04-29 20:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <171389641522.15334.4055859790974801392@vcs2.savannah.gnu.org>
     [not found] ` <20240423182018.97FA3C12C33@vcs2.savannah.gnu.org>
2024-04-28 10:53   ` master 1601c5a518d: Gnus: Add back end for Atom feeds (nnatom) Michael Albinus
2024-04-28 17:08     ` Eric Abrahamsen
2024-04-28 23:53       ` Eric Abrahamsen
2024-04-29 16:42         ` Michael Albinus
2024-04-29 17:14           ` Mattias Engdegård
2024-04-29 18:39             ` Daniel Semyonov
2024-04-29 20:12               ` Eric Abrahamsen [this message]
2024-04-29 21:02                 ` Daniel Semyonov
2024-04-30  6:59                 ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sez49bco.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=daniel@dsemy.com \
    --cc=emacs-devel@gnu.org \
    --cc=mattias.engdegard@gmail.com \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.