Gnus development mailing list
 help / color / mirror / Atom feed
From: jdc@chow.mat.jhu.edu (Dan Christensen)
Subject: Re: 2 things
Date: Sun, 06 Jul 1997 13:20:35 -0400	[thread overview]
Message-ID: <x7205cksgs.fsf@chow.mat.jhu.edu> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "06 Jul 1997 11:21:53 +0200"

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> jdchrist@math.mit.edu (Dan Christensen) writes:
> 
> > I still don't see why `gnus-no-server' needs to open each of my
> > nnfolder groups while `gnus' doesn't.
> 
> In addition to not connecting to the server, `gnus-no-server' starts
> up Gnus at a specific level.  Only the groups at or below that level
> will be activated, and Gnus does that activation with
> `nn*-request-group'.  For nnfolder, that means reading in the folder
> and counting articles.

Ahh, I see.  It seems to me that it would be better have
`gnus-no-server' behave exactly like `gnus' except that the server is
not contacted.  The start-up level is an orthogonal issue, and one can
always do `C-u 2 gnus-no-server' if one wants.

Of course, I should be able to obtain the behaviour I want by doing
(gnus nil t), right?  The nil indicates no startup level, and the t
means that gnus shouldn't connect to the server.  However, when you
do this, gnus *does* connect to the server.  Two places where this
happens are indicated below by <------- in the right margin:

(defun gnus-setup-news (&optional rawfile level dont-connect)
  "Setup news information.
If RAWFILE is non-nil, the .newsrc file will also be read.
If LEVEL is non-nil, the news will be set up at level LEVEL."

.......

    ;; Read the active file and create `gnus-active-hashtb'.
    ;; If `gnus-read-active-file' is nil, then we just create an empty
    ;; hash table.  The partial filling out of the hash table will be
    ;; done in `gnus-get-unread-articles'.
    (and gnus-read-active-file
	 (not level)
	 (gnus-read-active-file))                              <------

.......

    ;; Find new newsgroups and treat them.
    (when (and init gnus-check-new-newsgroups (not level) 
	       (gnus-check-server gnus-select-method)          <------
	       (not gnus-slave))
      (gnus-find-new-newsgroups))

.......

    ;; Find the number of unread articles in each non-dead group.
    (let ((gnus-read-active-file (and (not level) gnus-read-active-file)))
      (gnus-get-unread-articles level))

    (when (and init gnus-check-bogus-newsgroups
	       gnus-read-active-file (not level)
	       (gnus-server-opened gnus-select-method))
      (gnus-check-bogus-newsgroups))))

I don't think we simply want to add (not dont-connect) to the and's
above, because we would like our secondary servers to check for new
news, for example.  Maybe dont-connect should get passed along to
gnus-read-active-file, which would use its value in the appropriate way?

Dan

-- 
Dan Christensen
jdc@math.jhu.edu


  reply	other threads:[~1997-07-06 17:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-30 17:59 Frederic Corne
1997-06-30 23:10 ` Lars Magne Ingebrigtsen
1997-07-01  8:04   ` Frederic Corne
1997-07-04 10:52     ` Lars Magne Ingebrigtsen
1997-07-04 13:32       ` Frederic Corne
1997-07-06  9:20         ` Lars Magne Ingebrigtsen
1997-07-02  1:34   ` Dan Christensen
1997-07-02  7:56     ` Andy Eskilsson
     [not found]       ` <wksoxx70eh.fsf@peorth.gweep.net>
1997-07-03  7:04         ` Andy Eskilsson
1997-07-03  8:30           ` Frederic Corne
1997-07-03  9:35             ` Andy Eskilsson
1997-07-03 10:39               ` Hans de Graaff
1997-07-04 10:53     ` Lars Magne Ingebrigtsen
1997-07-04 14:42       ` Dan Christensen
1997-07-06  9:21         ` Lars Magne Ingebrigtsen
1997-07-06 17:20           ` Dan Christensen [this message]
1997-07-06 20:42             ` Hrvoje Niksic
1997-07-06 21:28               ` Dan Christensen
1997-07-06 21:38                 ` Hrvoje Niksic
1997-07-07  9:15             ` Lars Magne Ingebrigtsen
1997-07-13  3:44               ` Dan Christensen
1997-07-13  3:48               ` Dan Christensen

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=x7205cksgs.fsf@chow.mat.jhu.edu \
    --to=jdc@chow.mat.jhu.edu \
    /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.
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 NNTP newsgroup(s).