* gnus-group-category -- explanation wanted
@ 1999-05-06 14:37 Christian Nybø
1999-06-12 23:08 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Christian Nybø @ 1999-05-06 14:37 UTC (permalink / raw)
I've got this recurring problem with gnus-group-category.
I've tried to understand the following snippet from gnus-agent.el, the
comments are mine:
(defun gnus-group-category (group) ; group is a string like
; "nnml+private:list.xemacs-beta"
"Return the category GROUP belongs to."
(unless gnus-category-group-cache ; when gnus is started this
; is nil
(setq gnus-category-group-cache
(gnus-make-hashtable 1000)) ; generates a hashtable with
; empty slots
(let ((cs gnus-category-alist) ; cs is
; '((mail true nil nnml:)
; (default short nil nil))
groups cat)
(while (setq cat (pop cs)) ; cat is '(mail true nil nnml:)
(setq groups (cadddr cat)) ; groups is the atom nnml:
(while groups
(gnus-sethash ; args should be
; STRING VALUE HASHTABLE
(pop groups) ; implies (pop 'nnml:),
; which does not work
cat gnus-category-group-cache)))))
(or (gnus-gethash group gnus-category-group-cache)
(assq 'default gnus-category-alist)))
Could someone please explain how (pop 'nnml:) possibly could return a
string?
my versions:
XEmacs 21.2 "Aphrodite" [Lucid] (mips-sgi-irix6.5) of Sat Feb 27 1999
on sgichr
Pterodactyl Gnus v0.84
thanks,
--
chr
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gnus-group-category -- explanation wanted
1999-05-06 14:37 gnus-group-category -- explanation wanted Christian Nybø
@ 1999-06-12 23:08 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-06-12 23:08 UTC (permalink / raw)
"Christian Nybø" <s911254@stud.nhh.no> writes:
> I've tried to understand the following snippet from gnus-agent.el, the
> comments are mine:
[...]
> (let ((cs gnus-category-alist) ; cs is
> ; '((mail true nil nnml:)
I don't think that's a valid value for `gnus-category-alist'...
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-06-12 23:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-06 14:37 gnus-group-category -- explanation wanted Christian Nybø
1999-06-12 23:08 ` Lars Magne Ingebrigtsen
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).