Gnus development mailing list
 help / color / mirror / Atom feed
* How do check for existing/subscribed nndoc group?
@ 2005-04-09 20:05 Adrian Aichner
  0 siblings, 0 replies; only message in thread
From: Adrian Aichner @ 2005-04-09 20:05 UTC (permalink / raw)



Hi All!

This is some experimental code I came up with.

(message "gnuslog-file %S %ssubscribed to." gnuslog-file
	 (if
	     (gnus-gethash
	      (format "nndoc+%s:%s"
		      (expand-file-name gnuslog-file)
		      (file-name-nondirectory gnuslog-file))
	      gnus-newsrc-hashtb)
	     "is "
	   (if (gnus-group-make-doc-group gnuslog-file 'guess)
	       "has now been "
	     "could not be ")))

I'm not happy about with it, since checking gnus-newsrc-hashtb looks
too implementation-specific to me.

Is there a better way (in gnus-version "Gnus v5.10.7" if possible)?

Also, is there a distinction between subscribed and unsubscribed nndoc
group?

It didn't seem so according to my experiments.

Another thing:
When I debug above form with
M-f11 runs the command edebug-defun
and gnuslog-file is not in gnus-newsrc-hashtb, then some output of
gnus-group-make-doc-group gets inserted into the source buffer
(gnuslog.el in my case)!

Best regards,

Adrian

-- 
Adrian Aichner
 mailto:adrian@xemacs.org
 http://www.xemacs.org/



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-09 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-09 20:05 How do check for existing/subscribed nndoc group? Adrian Aichner

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).