From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#59121: 29.0.50; Gnus: Nnir is deprecated but not mention in the manual Date: Wed, 09 Nov 2022 14:01:24 -0800 Message-ID: <8735arrdmz.fsf@ericabrahamsen.net> References: <874jv9wuve.fsf@thaodan.de> <87y1sljgas.fsf@ericabrahamsen.net> <87tu39jfjo.fsf@ericabrahamsen.net> <87wn84vg33.fsf@thaodan.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16048"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 59121@debbugs.gnu.org Cancel-Lock: sha1:GvliEjsLEBk96ufjc56A69a1jMY= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 09 23:03:19 2022 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 1ostAE-00040F-Oo for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Nov 2022 23:03:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ost9q-00083v-Dm; Wed, 09 Nov 2022 17:02:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ost9H-0007uo-Q6 for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 17:02:23 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ost90-0006up-AW for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 17:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ost8z-0003sC-UL; Wed, 09 Nov 2022 17:02:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <874jv9wuve.fsf@thaodan.de> Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 09 Nov 2022 22:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59121 X-GNU-PR-Package: emacs,gnus X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166803130114862 (code B ref -1); Wed, 09 Nov 2022 22:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2022 22:01:41 +0000 Original-Received: from localhost ([127.0.0.1]:41221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ost8f-0003re-1w for submit@debbugs.gnu.org; Wed, 09 Nov 2022 17:01:41 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ost8c-0003qc-PB for submit@debbugs.gnu.org; Wed, 09 Nov 2022 17:01:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ost8c-0007sU-K6 for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 17:01:38 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ost8a-0006AU-Gd for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 17:01:38 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ost8V-0001q0-DW for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 23:01:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247468 Archived-At: Björn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > Eric Abrahamsen writes: > >> Eric Abrahamsen 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 ". > 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. I can mention when nnir was deprecated, but that information is already in the obsolete variable warning. The fact is that the Emacs manual ships with Emacs, and if the manual doesn't mention nnir, then you can be certain that the code doesn't, either. There are more than 30 nnir customization options for which we'd need to add obsoletion warnings, all of which warnings would be redundant with the warning you'll already get from customizing `nnir-method-default-engines'. Those options are all formed on a very regular pattern, and very easy to update for gnus-search. I will add something noting that the IMAP search engine is built in and requires no configuration, but I think that's all. Eric