GNU bug report logs - #32081
26.1; gnus-parameter-large-newsgroup-initial-alist ignored?

Previous Next

Package: emacs;

Reported by: Adam Porter <adam <at> alphapapa.net>

Date: Sat, 7 Jul 2018 11:57:01 UTC

Severity: minor

Tags: notabug

Found in version 26.1

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32081 in the body.
You can then email your comments to 32081 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32081; Package emacs. (Sat, 07 Jul 2018 11:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adam Porter <adam <at> alphapapa.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 07 Jul 2018 11:57:02 GMT) Full text and rfc822 format available.

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

From: Adam Porter <adam <at> alphapapa.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; gnus-parameter-large-newsgroup-initial-alist ignored?
Date: Sat, 7 Jul 2018 06:56:03 -0500
[I reported this on the bugs <at> gnus.org list on June 14, but from looking
at the nntp://news.gnus.org/gnus.gnus-bug group, it has received no reply,
while other bugs reported apparently via report-emacs-bug have been
noticed, so I'm reporting it that way now.]

Hi,

For a long time I have wanted to stop Gnus from asking me how many
messages to select when I read a newsgroup, e.g. when I'm reading
gmane.emacs.orgmode, there are over 11000 unread messages, and having
to always type in a number when I want to read recent postings is
tiresome.

A long time ago I tried to figure it out, but gave up.  Today I tried again.

First, I discovered gnus-parameter-large-newsgroup-initial-alist and
tried adding a regexp of ".*" with a number, but it had no effect.

Then, reading through source code, I discovered gnus-group-customize,
and how it apparently has its own customization interface.  So I
called that function with point on that newsgroup, clicked the
checkbox, set it to a number, and clicked done.  But it also had no
effect.

Then I used edebug to follow the execution of gnus-articles-to-read.
Finally I found what seems to be a bug, where the value of the
"default" variable is set:

#+BEGIN_SRC elisp
  (default (if only-read-p
               (or initial gnus-large-newsgroup)
             number))
#+END_SRC

only-read-p is set to nil because 1) read-all is not set, and 2) there
*are* unread articles (as there almost always are).  So "default" is
set to "number", which is the number of articles in the newsgroup.

Therefore, unless the user is intentionally showing all articles, or
there are no unread articles in the group, the setting in
gnus-parameter-large-newsgroup-initial-alist is ignored, and initial
prompt value is the number of total articles in the group (or the
number of unread articles, I'm not sure which).

Changing that code to:

#+BEGIN_SRC elisp
  (default (or initial gnus-large-newsgroup number)
#+END_SRC

seems to fix the problem.  I'm not sure if "number" should be included.

I guess this is a bug, since the user's setting is ignored any time
there are unread articles and the user isn't loading all of them, but
it seems strange that no one has noticed until now...

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32081; Package emacs. (Thu, 12 Jul 2018 08:30:02 GMT) Full text and rfc822 format available.

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

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: Adam Porter <adam <at> alphapapa.net>
Cc: 32081 <at> debbugs.gnu.org
Subject: Re: bug#32081: 26.1;
 gnus-parameter-large-newsgroup-initial-alist ignored?
Date: Thu, 12 Jul 2018 17:29:11 +0900
On Sat, 07 Jul 2018 06:56:03 -0500, Adam Porter wrote:
> First, I discovered gnus-parameter-large-newsgroup-initial-alist and
> tried adding a regexp of ".*" with a number, but it had no effect.

I guess this feature was designed to work only when the non-number
prefix argument (i.e., C-u) is given to gnus-group-read-group or
gnus-group-select-group.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32081; Package emacs. (Sat, 22 Jun 2019 13:37:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: Adam Porter <adam <at> alphapapa.net>, 32081 <at> debbugs.gnu.org
Subject: Re: bug#32081: 26.1;
 gnus-parameter-large-newsgroup-initial-alist ignored?
Date: Sat, 22 Jun 2019 15:36:47 +0200
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:

> On Sat, 07 Jul 2018 06:56:03 -0500, Adam Porter wrote:
>> First, I discovered gnus-parameter-large-newsgroup-initial-alist and
>> tried adding a regexp of ".*" with a number, but it had no effect.
>
> I guess this feature was designed to work only when the non-number
> prefix argument (i.e., C-u) is given to gnus-group-read-group or
> gnus-group-select-group.

Yes, I think so to, so this seems like a bug.  And if the user doesn't
want prompting at all, there's always gnus-large-newsgroup...

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




Added tag(s) notabug. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 22 Jun 2019 13:37:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 32081 <at> debbugs.gnu.org and Adam Porter <adam <at> alphapapa.net> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 22 Jun 2019 13:37:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 21 Jul 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 275 days ago.

Previous Next


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