unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: 59121@debbugs.gnu.org
Subject: bug#59121: 29.0.50; Gnus: Nnir is deprecated but not mention in the manual
Date: Wed, 09 Nov 2022 07:42:40 +0200	[thread overview]
Message-ID: <87wn84vg33.fsf@thaodan.de> (raw)
In-Reply-To: <87tu39jfjo.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 08 Nov 2022 13:35:07 -0800")

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>> I think the manual should mention that. I think such changes should be
>>> documented right a way in general.
>>
>> Do you mean that you recently upgraded Emacs, and got a deprecation
>> warning for a nnir-* variable, but there's no information in the Gnus
>> manual about migrating away from nnir?
>>
>> That does seem like an oversight...
>
> Here's a potential documentation patch.

> diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
> index 7bcf334297..578273aede 100644
> --- a/doc/misc/gnus.texi
> +++ b/doc/misc/gnus.texi
> @@ -21900,14 +21900,13 @@ About mairix
>  @uref{http://www.rpcurnow.force9.co.uk/mairix/index.html}
>  
>  Though mairix might not be as flexible as other search tools like
> -swish++ or namazu, which you can use via the @code{nnir} back end, it
> -has the prime advantage of being incredibly fast.  On current systems, it
> -can easily search through headers and message bodies of thousands and
> -thousands of mails in well under a second.  Building the database
> -necessary for searching might take a minute or two, but only has to be
> -done once fully.  Afterwards, the updates are done incrementally and
> -therefore are really fast, too.  Additionally, mairix is very easy to set
> -up.
> +swish++ or namazu, it has the prime advantage of being incredibly
> +fast.  On current systems, it can easily search through headers and
> +message bodies of thousands and thousands of mails in well under a
> +second.  Building the database necessary for searching might take a
> +minute or two, but only has to be done once fully.  Afterwards, the
> +updates are done incrementally and therefore are really fast, too.
> +Additionally, mairix is very easy to set up.
>  For maximum speed though, mairix should be used with mails stored in
>  @code{Maildir} or @code{MH} format (this includes the @code{nnml} back
> @@ -22545,6 +22544,20 @@ nnmairix caveats
>  

What about remote searches such as IMAP?
In any case since the search isn't asynchronous there's the caveat of
Gnus locking up Emacs until it is done.

This kinda goes out of the original topic but the manual doesn't mention
much what can used to reduce the download when IMAP is used (caching etc.).

> +@node nnir
> +@section Migrating from nnir
> +
> +@cindex nnir
> +
> +Gnus' previous search engine was called nnir, and is now obsolete.  If
> +you've upgraded Emacs and are now getting obsolete-variable warnings
> +about @code{nnir-*} variables, migration is fairly straightforward.
> +In addition to the variables raised by the warnings, all previous
> +engine-specific variables can be updated by simply replacing the
> +@code{nnir-} prefix with @code{gnus-search-}.  For instance,
> +@code{nnir-notmuch-program} is now @code{gnus-search-notmuch-program}.

The section should mention the exact version it was deprecated,
instead of now it should be "and is deprecated since <version>".
Something like a separate section about deprecated items could also be
very useful. Some guide around the internet set variables which are no
longer valid, if there is a section for each item deprecated
with an explanation it could help greatly.

Br,

Björn





  reply	other threads:[~2022-11-09  5:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-08 11:25 bug#59121: 29.0.50; Gnus: Nnir is deprecated but not mention in the manual Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-08 21:18 ` Eric Abrahamsen
2022-11-08 21:35   ` Eric Abrahamsen
2022-11-09  5:42     ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-11-09 22:01       ` Eric Abrahamsen
2022-11-11 19:10       ` Eric Abrahamsen
2022-11-11 20:58         ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-09  5:29   ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-09 10:42     ` Robert Pluim

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87wn84vg33.fsf@thaodan.de \
    --to=bug-gnu-emacs@gnu.org \
    --cc=59121@debbugs.gnu.org \
    --cc=bjorn.bidar@thaodan.de \
    --cc=eric@ericabrahamsen.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).