From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.bugs Subject: bug#32081: 26.1; gnus-parameter-large-newsgroup-initial-alist ignored? Date: Sat, 7 Jul 2018 06:56:03 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1530964511 4828 195.159.176.226 (7 Jul 2018 11:55:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 7 Jul 2018 11:55:11 +0000 (UTC) To: 32081@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 07 13:55:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fblnv-00019K-Du for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jul 2018 13:55:07 +0200 Original-Received: from localhost ([::1]:33264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fblq2-0003T7-C6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jul 2018 07:57:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fblps-0003Qu-C7 for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 07:57:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fblpn-0000Pk-78 for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 07:57:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41308) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fblpn-0000PW-2C for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 07:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fblpm-0001nS-5a for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 07:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jul 2018 11:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32081 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15309645886858 (code B ref -1); Sat, 07 Jul 2018 11:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2018 11:56:28 +0000 Original-Received: from localhost ([127.0.0.1]:49205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fblpA-0001mV-Pc for submit@debbugs.gnu.org; Sat, 07 Jul 2018 07:56:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fblp9-0001mI-CD for submit@debbugs.gnu.org; Sat, 07 Jul 2018 07:56:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fblp1-000060-QF for submit@debbugs.gnu.org; Sat, 07 Jul 2018 07:56:18 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fblp1-00005s-M8 for submit@debbugs.gnu.org; Sat, 07 Jul 2018 07:56:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fblow-0003Q7-BU for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 07:56:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fblor-0008Rn-BT for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 07:56:10 -0400 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:34009) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fblor-0008RD-4m for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 07:56:05 -0400 Original-Received: by mail-ed1-x536.google.com with SMTP id d3-v6so10513905edi.1 for ; Sat, 07 Jul 2018 04:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=IH0DMbbkGLgEU7NYK378tF/XVbQArlnRExPvj7ESrb4=; b=ql2Ep75QmCqK+0PdEt9uDl7cKIy7XFg+oRUyXnvY8ZZ/61/YiNWfV3adBxpeHueBPK pRUX5TaDBqmWw/XTwIsjBOYOcd6/uIjQ7RJ8LzCDGu4ACKe5a2ZL8npNsuVnkdxwjVZX lipKdHFUarMVfqP8TON+y4ocxr0nl5LshjTvHpkOfvpIqezHzMhOe6WGie1yeH/Uit15 ImB1sfawSaIDaa2cvPAkZAdALEmNMsniairlsc9IDN3NzpNu01o7kiHvLygfHUI19EMv ASxbj6vUGfiaObmCFKBXdqtqo2lvYeIUIbstvwehnoSHrsxvtp97WC8BiGvQ5FOz54F8 iWZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=IH0DMbbkGLgEU7NYK378tF/XVbQArlnRExPvj7ESrb4=; b=W7LKflSUQQbD90ErNZVlA3svZmxQj/eAQmp3iVWjMvrT59AIS6olJHw4G/BhGdDr5B nFJ1R5vAquyPE+jtnFJjIx3VjmlNoPYYf23ZIGEQIR3L702zrBkGWzpKIRnCES6ufHkj xoTZNp5xjxrP+Qi7qj9jfjTdSgLoSkcBnoAv5aqCz4L/sKzmD/oVrUUexpRkX4jjACRo l1UZSWjRpDkas0lphVq+NWf0qsWAhcB9rKKY6iiZssteCksQhfD33tiUf1GtVw0luwoY Fwe0HDLLgKqLXc/fGe0jBRN1jPAwcm6DOa/A07PcpbbS/DvND0tUkNevIrIPDmm/YX40 BsmQ== X-Gm-Message-State: APt69E03pliT2324P9uAOWlzZBk0j+7WyDH1dop1IZuxs8m3cCriiYAn nMMjphFrbRnRNs2TmgYvlA0Hlwf9WVYCJhtvRl7h2w== X-Google-Smtp-Source: AAOMgpd+b+oKyp7RXwsmLHLJwv26NKD17OWQkARxuZfZj3MwYg2lhwNt7UxopAsYCTyYCXrg5DSvQQqemnr8k08kBxU= X-Received: by 2002:a50:91da:: with SMTP id h26-v6mr14129642eda.87.1530964563604; Sat, 07 Jul 2018 04:56:03 -0700 (PDT) Original-Received: by 2002:a50:fd8e:0:0:0:0:0 with HTTP; Sat, 7 Jul 2018 04:56:03 -0700 (PDT) X-Google-Sender-Auth: R6qKNcZrvhGwvjBYexVdHewIW20 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148296 Archived-At: [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.