Gnus development mailing list
 help / color / mirror / Atom feed
From: Nelson Ferreira <nelson.ferreira@verizon.net>
Subject: [patch] spam.el revision 7.35 stopping exit from groups
Date: Sat, 15 May 2004 12:57:51 -0400	[thread overview]
Message-ID: <29788.1717248403$1084640331@news.gmane.org> (raw)



After updating gnus with to the latest CVS, I started getting:


Signaling: (wrong-type-argument number-char-or-marker-p nil)
  spam-summary-prepare-exit()
  run-hooks(spam-summary-prepare-exit)
  apply(run-hooks spam-summary-prepare-exit)
  gnus-run-hooks(gnus-summary-prepare-exit-hook)
  #<compiled-function (&optional temporary leave-hidden) "...(434)" [gnus-article-buffer group gnus-buffers quit-config buffer buf gnus-set-global-variables gnus-buffer-live-p mm-destroy-parts nil gnus-kill-save-kill-buffer gnus-async-halt-prefetch gnus-group-quit-config t gnus-score-adaptive gnus-score-save gnus-run-hooks gnus-summary-prepare-exit-hook get-buffer buffer-name delete kill-buffer gnus-cache-possibly-remove-articles gnus-cache-save-buffers gnus-async-prefetch-remove-group gnus-dup-enter-articles gnus-tree-close gnus-cache-write-active nnmail-purge-split-history string-match "^[^:]+:" 0 gnus-exit-group-hook gnus-summary-update-info gnus-close-group gnus-group-jump-to-group gnus-summary-exit-hook gnus-group-group-name gnus-group-next-unread-group 1 gnus-deaden-summary gnus-summary-clear-local-variables bury-buffer gnus-summary-mode pop-to-buffer gnus-configure-windows force gnus-handle-ephemeral-exit gname gnus-group-buffer ...] 5 ("/usr/lib/xemacs/site-packages/lisp/gnus/gnus-sum.elc" . 188106) nil>()
  call-interactively(gnus-summary-exit)


This small patch fixed it for me, use it freely:


diff -u -u -b -r7.35 spam.el
--- lisp/spam.el        14 May 2004 19:41:07 -0000      7.35
+++ lisp/spam.el        15 May 2004 16:56:56 -0000
@@ -869,9 +869,9 @@

     ;; now we redo spam-mark-spam-as-expired-and-move-routine to only
     ;; expire spam, in case the above did not expire them
-    (when (< 0 (spam-list-articles
+    (when (< 0 (length (spam-list-articles
                gnus-newsgroup-articles
-               'spam))
+                       'spam)))
       (gnus-message 6 "Marking spam as expired without moving it")
       (spam-mark-spam-as-expired-and-move-routine nil))



-- 
Nelson Ferreira



             reply	other threads:[~2004-05-15 16:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-15 16:57 Nelson Ferreira [this message]
2004-05-15 17:37 ` Nevin Kapur
     [not found] <m3y8ntvd9s.fsf_-nf--_xmat_-m:gnus_---@tuxie.homelinux.net>
2004-05-15 18:21 ` Ted Zlatanov

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='29788.1717248403$1084640331@news.gmane.org' \
    --to=nelson.ferreira@verizon.net \
    /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).