From: Juha Autero <Juha.Autero@iki.fi>
Subject: Re: Problems with Oort Gnus 0.18 and XEmacs 21.4.6.
Date: Fri, 25 Apr 2003 00:48:43 +0300 [thread overview]
Message-ID: <87n0ifva6c.fsf@jautero.no-ip.org> (raw)
In-Reply-To: <87wuhjmxza.fsf@jautero.no-ip.org>
[-- Attachment #1: Type: text/plain, Size: 347 bytes --]
Juha Autero <Juha.Autero@iki.fi> 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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch for nnrss diff --]
[-- Type: text/x-patch, Size: 789 bytes --]
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)))
[-- Attachment #3: Type: text/plain, Size: 62 bytes --]
--
Juha Autero
http://www.iki.fi/jautero/
Eschew obscurity!
prev parent reply other threads:[~2003-04-24 21:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-23 21:45 Juha Autero
2003-04-24 13:40 ` Simon Josefsson
2003-04-24 20:39 ` Juha Autero
2003-04-24 21:48 ` Juha Autero [this message]
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=87n0ifva6c.fsf@jautero.no-ip.org \
--to=juha.autero@iki.fi \
/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).