From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51798 Path: main.gmane.org!not-for-mail From: Juha Autero Newsgroups: gmane.emacs.gnus.general Subject: Re: Problems with Oort Gnus 0.18 and XEmacs 21.4.6. Date: Fri, 25 Apr 2003 00:48:43 +0300 Sender: ding-owner@lists.math.uh.edu Message-ID: <87n0ifva6c.fsf@jautero.no-ip.org> References: <874r4ovqft.fsf@jautero.no-ip.org> <87wuhjmxza.fsf@jautero.no-ip.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1051221061 15709 80.91.224.249 (24 Apr 2003 21:51:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 21:51:01 +0000 (UTC) Original-X-From: ding-owner+M341@lists.math.uh.edu Thu Apr 24 23:50:59 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 198ocN-00045F-00 for ; Thu, 24 Apr 2003 23:50:59 +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 198ocX-0003XE-00; Thu, 24 Apr 2003 16:51:09 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 198ocS-0003X9-00 for ding@lists.math.uh.edu; Thu, 24 Apr 2003 16:51:04 -0500 Original-Received: (qmail 46543 invoked by alias); 24 Apr 2003 21:51:04 -0000 Original-Received: (qmail 46538 invoked from network); 24 Apr 2003 21:51:04 -0000 Original-Received: from main.gmane.org (80.91.224.249) by sclp3.sclp.com with SMTP; 24 Apr 2003 21:51:04 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 198oa4-0003tr-00 for ; Thu, 24 Apr 2003 23:48:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 198oZE-0003qk-00 for ; Thu, 24 Apr 2003 23:47:44 +0200 Original-Lines: 52 Original-X-Complaints-To: usenet@main.gmane.org X-Face: 7n#wTk;I3AZ,Ayd~IMyG`yuI0?;*$xb-WikUcvzd::VcxJ"%SUN\d`jPad%)op)YevdVp4v m?`w^1\(.@upc}P1+fXJq0Aj3h+{>p,z}:c'QT1er writes: > Now I managed to debug it and seem to have found the problem. The > regexps that remove spaces are wrong. They use '*' which matches also > zero occurances. That causes regexp to always match and there is an > infinite loop. Also the name of the function is 'gnus-replace-in-string' here's a patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Description: patch for nnrss diff Index: nnrss.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnrss.el,v retrieving revision 6.38 diff -u -r6.38 nnrss.el --- nnrss.el 24 Apr 2003 13:41:25 -0000 6.38 +++ nnrss.el 24 Apr 2003 21:49:35 -0000 @@ -514,12 +514,12 @@ (text (if (and node (listp node)) (nnrss-node-just-text node) node)) - (cleaned-text (if text (gnus-replace-regexp-in-string - (gnus-replace-regexp-in-string - (gnus-replace-regexp-in-string + (cleaned-text (if text (gnus-replace-in-string + (gnus-replace-in-string + (gnus-replace-in-string text "^[[:cntrl:]]+" "") - "^ *" "") - " *$" "")))) + "^ +" "") + " +$" "")))) (if (string-equal "" cleaned-text) nil cleaned-text))) --=-=-= -- Juha Autero http://www.iki.fi/jautero/ Eschew obscurity! --=-=-=--