From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/22923 Path: main.gmane.org!not-for-mail From: "Christian Nybø" Newsgroups: gmane.emacs.gnus.general Subject: gnus-group-category -- explanation wanted Date: 06 May 1999 16:37:03 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: <4yzp3ie034.fsf@smtp.nhh.no> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035160753 31819 80.91.224.250 (21 Oct 2002 00:39:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:39:13 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA26958 for ; Thu, 6 May 1999 11:16:52 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB22048; Thu, 6 May 1999 10:16:05 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 06 May 1999 10:16:27 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id KAA09227 for ; Thu, 6 May 1999 10:16:18 -0500 (CDT) Original-Received: from escudo.nhh.no (escudo.nhh.no [158.37.96.28]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA26917 for ; Thu, 6 May 1999 11:16:09 -0400 (EDT) Original-Received: from sgichr.set-var-smtpmail-local-domain (isdn-158.nhh.no [158.37.100.158]) by escudo.nhh.no (8.9.3/8.9.3) with SMTP id RAA81982 for ; Thu, 6 May 1999 17:15:24 +0200 (CEST) Original-To: ding@gnus.org X-URL: http://www.mediascience.no/~chr/ Original-Lines: 39 User-Agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) XEmacs/21.2(beta5) (Aphrodite) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:22923 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:22923 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