From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53037 Path: main.gmane.org!not-for-mail From: Niklas Morberg Newsgroups: gmane.emacs.gnus.general Subject: [Semi-solved] Re: Endless fuzzy looping is back Date: Fri, 06 Jun 2003 10:57:02 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054889712 15318 80.91.224.249 (6 Jun 2003 08:55:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2003 08:55:12 +0000 (UTC) Original-X-From: ding-owner+M1581@lists.math.uh.edu Fri Jun 06 10:55:11 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19OD0A-0003yw-00 for ; Fri, 06 Jun 2003 10:55:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19OD2A-000387-00; Fri, 06 Jun 2003 03:57:14 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19OD22-00037z-00 for ding@lists.math.uh.edu; Fri, 06 Jun 2003 03:57:06 -0500 Original-Received: (qmail 34994 invoked by alias); 6 Jun 2003 08:57:06 -0000 Original-Received: (qmail 34989 invoked from network); 6 Jun 2003 08:57:06 -0000 Original-Received: from krynn.se.axis.com (193.13.178.10) by sclp3.sclp.com with SMTP; 6 Jun 2003 08:57:06 -0000 Original-Received: from PCNIKLAS (dh10-13-8-248.se.axis.com [10.13.8.248]) by krynn.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id h568v3D7018860 for ; Fri, 6 Jun 2003 10:57:03 +0200 Original-To: ding@gnus.org In-Reply-To: (Niklas Morberg's message of "Fri, 06 Jun 2003 09:01:22 +0200") X-Now-Playing: Elton John: Goodbye Yellow Brick Road (1973) - The ballad of Danny Bailey(1909-34) Mail-Followup-To: ding@gnus.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53037 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53037 Niklas Morberg writes: > What can I do to help solve the problem with the eternal > loop? Ok, I think I've found the problem. In gnus-sum.el, the following helper function is used: (defsubst gnus-simplify-buffer-fuzzy-step (regexp &optional newtext) (goto-char (point-min)) (while (re-search-forward regexp nil t) (replace-match (or newtext "")))) (How do I debug a defsubst? I couldn't `C-u C-M-x'...) Now. If the regexp used is something that matches an empty string, this function will never return. To test this, I set: (setq gnus-simplify-subject-fuzzy-regexp "^") and tried to enter a group. Nothing happens. Eternal looping. (setq gnus-simplify-subject-fuzzy-regexp "^.") and I can enter the group with no problems. The reason for my problems was that I had g-s-s-f-r set to message-subject-re-regexp and I was changing the latter. Lesson learned: don't have a regexp for g-s-s-f-r that matches an empty string. I still think there's a bug somewhere, but at least it doesn't bite me anymore. FWIW the default value for message-subject-re-regexp: "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)*:[ \t]*\\)*[ \t]*" fails for g-s-s-f-r. This works much better: "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)*:[ \t]*\\)+[ \t]*" The change is here--^ Niklas