Subject: bug#9108: wrong type argument

From: Dave Abrahams <[email-masked]>
Date: Thu, 21 Jul 2011 21:18:30 -0400

on Tue Jul 19 2011, Lars Magne Ingebrigtsen <larsi-AT-gnus.org> wrote:

> Dave Abrahams <[email-masked]> writes:
>
>> When I hit `/ n' in the summary and it fails to open the server (not
>> sure why it would have that problem with gmane; it appears to be up),
>> the error message I get looks like a programming bug: "wrong type
>> argument number-or-marker-p nil"
>
> Could you send a backtrace?

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  >(nil nil)
  (while (> i old-high) (push i new) (decf i))
  (let ((old ...) (old-high gnus-newsgroup-highest) (nnmail-fetched-sources ...) i new) (setq gnus-newsgroup-active (gnus-copy-sequence ...)) (setq i (cdr gnus-newsgroup-active) gnus-newsgroup-highest i) (while (> i old-high) (push i new) (decf i)) (if (not new) (message "No gnus is bad news") (gnus-summary-insert-articles new) (setq gnus-newsgroup-unreads ...) (gnus-summary-limit ...)))
  (prog1 (let (... ... ... i new) (setq gnus-newsgroup-active ...) (setq i ... gnus-newsgroup-highest i) (while ... ... ...) (if ... ... ... ... ...)) (gnus-summary-position-point))
  gnus-summary-insert-new-articles()
  call-interactively(gnus-summary-insert-new-articles nil nil)

To reproduce: 

1. set a breakpoint in gnus-open-server on the sexp following
   this comment

    ;; If this method was previously denied, we just return nil.

2. (setq debug-on-error t)

3. Execute `/ N' in your summary buffer

4. When the breakpoint is hit, pretend the server had been denied:

    (setq elem (list (car elem) 'denied))

5. continue

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com