Gnus development mailing list
 help / color / mirror / Atom feed
From: Yoshiki Hayashi <t90553@m.ecc.u-tokyo.ac.jp>
Subject: nnvirtual: fetch parent article
Date: 21 Feb 2000 17:41:43 +0900	[thread overview]
Message-ID: <8766vj0wxk.fsf@dp50.ecc.u-tokyo.ac.jp> (raw)

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

Go to nnvirtual group, read one article and then type ^.
You'll get:
Variable binding depth exceeds max-specpdl-size
I confirmed with latest Gnus 5.8.4 from CVS.

Because gnus-override-method is bound,
gnus-find-method-for-group always returns nnvirtual.  Thus,
it ends up in an infinite loop.
I don't know this is the right fix, but at least it works
for me.  Latter half is to prevent an error,
Wrong type argument stringp: nil

2000-02-21  Yoshiki Hayashi  <yoshiki@xemacs.org>

	* nnvirtual.el (nnvirtual-request-article):
	Bind gnus-override-method to nil.
	(nnvirtual-request-update-mark): Don't update mark when
	article is not there.


[-- Attachment #2: nnvirtual.el.diff --]
[-- Type: text/plain, Size: 1349 bytes --]

Index: nnvirtual.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnvirtual.el,v
retrieving revision 5.11
diff -u -r5.11 nnvirtual.el
--- nnvirtual.el	1999/12/04 01:11:14	5.11
+++ nnvirtual.el	2000/02/21 08:37:00
@@ -197,8 +197,9 @@
 	  (save-excursion
 	    (when buffer
 	      (set-buffer buffer))
-	    (let ((method (gnus-find-method-for-group
-			   nnvirtual-last-accessed-component-group)))
+	    (let* ((gnus-override-method nil)
+		   (method (gnus-find-method-for-group
+			    nnvirtual-last-accessed-component-group)))
 	      (funcall (gnus-get-function method 'request-article)
 		       article nil (nth 1 method) buffer)))))
       ;; This is a fetch by number.
@@ -283,12 +284,11 @@
 
 (deffoo nnvirtual-request-update-mark (group article mark)
   (let* ((nart (nnvirtual-map-article article))
-	 (cgroup (car nart))
-	 ;; The component group might be a virtual group.
-	 (nmark (gnus-request-update-mark cgroup (cdr nart) mark)))
+	 (cgroup (car nart)))
     (when (and nart
 	       (memq mark gnus-auto-expirable-marks)
-	       (= mark nmark)
+	       ;; The component group might be a virtual group.
+	       (= mark (gnus-request-update-mark cgroup (cdr nart) mark))
 	       (gnus-group-auto-expirable-p cgroup))
       (setq mark gnus-expirable-mark)))
   mark)

[-- Attachment #3: Type: text/plain, Size: 22 bytes --]



-- 
Yoshiki Hayashi

                 reply	other threads:[~2000-02-21  8:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=8766vj0wxk.fsf@dp50.ecc.u-tokyo.ac.jp \
    --to=t90553@m.ecc.u-tokyo.ac.jp \
    /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).