From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/11299 Path: main.gmane.org!not-for-mail From: Steven L Baur Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-change-server problems? Date: 06 Jun 1997 14:36:43 -0700 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035151032 29475 80.91.224.250 (20 Oct 2002 21:57:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:57:12 +0000 (UTC) Return-Path: Original-Received: from sandy.calag.com (root@sandy [206.190.83.128]) by altair.xemacs.org (8.8.5/8.8.5) with ESMTP id PAA21971 for ; Fri, 6 Jun 1997 15:47:29 -0700 Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by sandy.calag.com (8.8.5/8.8.5) with ESMTP id PAA30223 for ; Fri, 6 Jun 1997 15:47:39 -0700 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with SMTP id RAA17993 for ; Fri, 6 Jun 1997 17:46:58 -0500 (CDT) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Fri, 6 Jun 1997 23:36:45 +0200 Original-Received: (qmail 5068 invoked by uid 504); 6 Jun 1997 21:36:43 -0000 Original-Received: (qmail 5065 invoked from network); 6 Jun 1997 21:36:43 -0000 Original-Received: from xemacs.miranova.com (HELO altair.xemacs.org) (steve@206.190.83.19) by claymore.vcinet.com with SMTP; 6 Jun 1997 21:36:42 -0000 Original-Received: (from steve@localhost) by altair.xemacs.org (8.8.5/8.8.5) id OAA21337; Fri, 6 Jun 1997 14:36:44 -0700 Mail-Copies-To: never Original-To: ding@gnus.org X-Url: http://www.miranova.com/%7Esteve/ X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5" f8*@r4ipO6Jl!:Ccqp:9I OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+ X-Attribution: sb In-Reply-To: Lars Magne Ingebrigtsen's message of "06 Jun 1997 19:44:17 +0200" X-Mailer: Gnus v5.4.56/XEmacs 20.3(beta5) Original-Lines: 63 Original-Xref: altair.xemacs.org dgnus-list:1689 Xref: main.gmane.org gmane.emacs.gnus.general:11299 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:11299 Lars Magne Ingebrigtsen writes: > Chris Halverson writes: >> > (sort '(nil) '<) >> > >> > Put point after the closing paren. Press `C-x C-e'. Does your XEmacs >> > say "beep" or "(nil)"? >> >> (nil) > But then I don't understand the backtrace you posted: > Signaling: (wrong-type-argument number-or-marker-p nil) > <(nil nil) > sort((nil) <) > gnus-move-group-to-server(("alt.collecting.pens-pencils" 3 ((1 . 9531)) ((save 9486) (expire 8963 ... 9126 9130 9133 9142 9342 ... ...) (reply 9300 9486 9513))) (nntp "news.mr.net") (nntp "news.uslink.net")) > Am I misreading this backtrace? Doesn't it say that `(sort '(nil) '<)' > bugs out? That's how I read it too. On the other hand, the sort subr hasn't been changed in a long time (the code dates from the Lucid days), and it should be impossible to hit any code where a comparison is done when it is handed a nil list. (< nil nil) definitely produces the same wrong-type-argument error message shown in the backtrace. Chris, can you possibly manage to get a C backtrace of this error? Note that the code that catches degenerate lists in XEmacs' list_sort is identical to the in-line code in Emacs 19.34+ sort. DEFUN ("sort", Fsort, 2, 2, 0, /* Sort LIST, stably, comparing elements using PREDICATE. Returns the sorted list. LIST is modified by side effects. PREDICATE is called with two elements of LIST, and should return T if the first element is \"less\" than the second. */ (list, pred)) { return list_sort (list, pred, merge_pred_function); } Lisp_Object list_sort (Lisp_Object list, Lisp_Object lisp_arg, int (*pred_fn) (Lisp_Object, Lisp_Object, Lisp_Object lisp_arg)) { Lisp_Object front, back; Lisp_Object len, tem; struct gcpro gcpro1, gcpro2, gcpro3; int length; front = list; len = Flength (list); length = XINT (len); if (length < 2) return list; <====== A nil list should be caught here. ... -- steve@calag.com baur Unsolicited commercial e-mail will be billed at $250/message.