all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam Porter <adam@alphapapa.net>
To: 32081@debbugs.gnu.org
Subject: bug#32081: 26.1; gnus-parameter-large-newsgroup-initial-alist ignored?
Date: Sat, 7 Jul 2018 06:56:03 -0500	[thread overview]
Message-ID: <CAO_b3FV5Gvi4HqJGMoST8buujfXeC2GBcv7SRawb2zRsup0SGg@mail.gmail.com> (raw)

[I reported this on the bugs@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.





             reply	other threads:[~2018-07-07 11:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-07 11:56 Adam Porter [this message]
2018-07-12  8:29 ` bug#32081: 26.1; gnus-parameter-large-newsgroup-initial-alist ignored? Katsumi Yamaoka
2019-06-22 13:36   ` Lars Ingebrigtsen

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=CAO_b3FV5Gvi4HqJGMoST8buujfXeC2GBcv7SRawb2zRsup0SGg@mail.gmail.com \
    --to=adam@alphapapa.net \
    --cc=32081@debbugs.gnu.org \
    /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.