Gnus development mailing list
 help / color / mirror / Atom feed
From: Shenghuo ZHU <zsh@cs.rochester.edu>
Cc: bugs@gnus.org (The Gnus Bugfixing Girls + Boys),
	Gnus Mailing List <ding@gnus.org>
Subject: Re: Stringp-error when retrieving grouplist from news.newsfeeds.com
Date: 26 Oct 1999 21:59:52 -0400	[thread overview]
Message-ID: <2nn1t54l7r.fsf@tiger.jia.vnet> (raw)
In-Reply-To: Andrew Markebo's message of "26 Oct 1999 22:53:48 +0200"

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]

>>>>> "AM" == Andrew Markebo <andrew.markebo@telelogic.se> writes:

AM> Pterodactyl Gnus v0.97
AM> GNU Emacs 20.4.2 (sparc-sun-solaris2.5.1, X toolkit)
AM>  of Thu Jul 22 1999 on warp
AM> 200 127.0.0.1 DNEWS Version 5.2c, S7, posting OK 

AM> What I did was ^ to enter the server buffer, jumped to
AM> news.newsfeeds.com, enter.. chew chew chew.. whammo

AM> Connecting to news.newsfeeds.com...
AM> Reading active file...

AM> Reading active file...done
AM> Wrong type argument: stringp, 100622.2474

AM>         /Andy

AM> It is a huge list of articles.. here comes the backtrace:

AM> Signaling: (wrong-type-argument stringp 100622.2474)
AM>   #[(l1 l2) "\b@	@(TM)‡" [l1 l2] 2]((100622.2474 . 1) (1a . 1))
AM>   sort(((ercielt . 1) (erg2310b . 1) (ernmc\.firewall-1 . 1238) 

[...]

AM>   gnus-browse-foreign-server("news.newsfeeds.com" #<buffer *Server*>)
AM>   gnus-server-read-server("news.newsfeeds.com")
AM>   call-interactively(gnus-server-read-server)

I guess I've fixed it. The weird behavior is because of the all-digit
group.  Could you test the patch (committed) ?

-- 
Shenghuo

1999-10-26 21:44:05  Shenghuo ZHU  <zsh@cs.rochester.edu>

	* gnus-srvr.el (gnus-browse-foreign-server): Use
 	`buffer-substring' instead of `read'.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 97-115.diff --]
[-- Type: text/x-patch, Size: 635 bytes --]

Index: gnus-srvr.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-srvr.el,v
retrieving revision 5.11
diff -u -r5.11 gnus-srvr.el
--- gnus-srvr.el	1999/09/27 15:18:52	5.11
+++ gnus-srvr.el	1999/10/27 01:43:55
@@ -594,7 +594,9 @@
 	    (delete-matching-lines gnus-ignored-newsgroups))
 	  (while (not (eobp)) 
 	    (ignore-errors
-             (push (cons (read cur)
+             (push (cons (let ((p (point)))
+			   (skip-chars-forward "^ \t")
+			   (buffer-substring p (point)))
 			  (max 0 (- (1+ (read cur)) (read cur))))
 		    groups))
 	    (forward-line))))

       reply	other threads:[~1999-10-27  1:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <kshfjdq1wj.fsf@telelogic.se>
1999-10-27  1:59 ` Shenghuo ZHU [this message]
1999-10-27  3:36   ` An un-decoded-QP bug and its patch (was: Re: Stringp-error when retrieving grouplist from news.newsfeeds.com) Shenghuo ZHU

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=2nn1t54l7r.fsf@tiger.jia.vnet \
    --to=zsh@cs.rochester.edu \
    --cc=bugs@gnus.org \
    --cc=ding@gnus.org \
    /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).