From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78834 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: entering group hangs, `gnus-summary-hide-all-threads' loops forever Date: Mon, 16 May 2011 11:45:10 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87mxim8ui1.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305564381 17246 80.91.229.12 (16 May 2011 16:46:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 May 2011 16:46:21 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27134@lists.math.uh.edu Mon May 16 18:46:18 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QM0vx-0000Vd-3X for ding-account@gmane.org; Mon, 16 May 2011 18:46:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QM0vG-0004hx-JS; Mon, 16 May 2011 11:45:34 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QM0vE-0004hk-Ta for ding@lists.math.uh.edu; Mon, 16 May 2011 11:45:32 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QM0vC-0001gF-UD for ding@lists.math.uh.edu; Mon, 16 May 2011 11:45:32 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QM0vA-0006Hm-Ra for ding@gnus.org; Mon, 16 May 2011 18:45:28 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QM0v5-0008FB-Nu for ding@gnus.org; Mon, 16 May 2011 18:45:23 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 May 2011 18:45:23 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 May 2011 18:45:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:U3xZnvo6pveisCxav05Efhn1P04= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78834 Archived-At: RET on a nnmaildir group hangs forever. This is due to `gnus-summary-hide-all-threads'. This happens in only one group. With the following modification, I can see that it's doing millions of iterations in the loop, and there are only a few articles in the group I'm entering. (defun gnus-summary-hide-all-threads (&optional predicate) "Hide all thread subtrees. If PREDICATE is supplied, threads that satisfy this predicate will not be hidden." (interactive) (save-excursion (goto-char (point-min)) (let ((end nil) (count 0)) (while (not end) (incf count) (when (zerop (mod count 1000)) (message "Hiding all threads... %d" count)) (when (or (not predicate) (gnus-map-articles predicate (gnus-summary-article-children))) (gnus-summary-hide-thread)) (setq end (not (zerop (gnus-summary-next-thread 1 t))))))) (gnus-summary-position-point)) Here's the backtrace with `toggle-debug-on-quit': Debugger entered--Lisp error: (quit) gnus-summary-go-to-next-thread(nil) gnus-summary-next-thread(1 t) (zerop (gnus-summary-next-thread 1 t)) (not (zerop (gnus-summary-next-thread 1 t))) (setq end (not (zerop (gnus-summary-next-thread 1 t)))) (while (not end) (incf count) (when (zerop (mod count 100)) (message "Hiding all threads... %d" count)) (when (or (not predicate) (gnus-map-articles predicate (gnus-summary-article-children))) (gnus-summary-hide-thread)) (setq end (not (zerop (gnus-summary-next-thread 1 t))))) (let ((end nil) (count 0)) (while (not end) (incf count) (when (zerop (mod count 100)) (message "Hiding all threads... %d" count)) (when (or (not predicate) (gnus-map-articles predicate (gnus-summary-article-children))) (gnus-summary-hide-thread)) (setq end (not (zerop (gnus-summary-next-thread 1 t)))))) (save-excursion (goto-char (point-min)) (let ((end nil) (count 0)) (while (not end) (incf count) (when (zerop (mod count 100)) (message "Hiding all threads... %d" count)) (when (or (not predicate) (gnus-map-articles predicate (gnus-summary-article-children))) (gnus-summary-hide-thread)) (setq end (not (zerop (gnus-summary-next-thread 1 t))))))) gnus-summary-hide-all-threads(nil) gnus-summary-maybe-hide-threads() gnus-summary-read-group-1("it" nil t nil nil nil) gnus-summary-read-group("it" nil t nil nil nil nil) gnus-group-read-group(nil t) gnus-group-select-group(nil) gnus-topic-select-group(nil) call-interactively(gnus-topic-select-group nil nil) I won't touch this group to preserve the bug. But the whole (not (zerop (next-thread))) logic is hard to understand, especially since `gnus-summary-next-thread' does differential updates and is pretty complicated. So I need help to figure out where it's hanging. Ted