From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44858 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Gathering very loose threads Date: Thu, 16 May 2002 16:58:12 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021561159 5300 127.0.0.1 (16 May 2002 14:59:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 May 2002 14:59:19 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 178Mis-0001N9-00 for ; Thu, 16 May 2002 16:59:19 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 178MiC-0006fE-00; Thu, 16 May 2002 09:58:36 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 16 May 2002 09:58:54 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id JAA13135 for ; Thu, 16 May 2002 09:58:43 -0500 (CDT) Original-Received: (qmail 25094 invoked by alias); 16 May 2002 14:58:19 -0000 Original-Received: (qmail 25089 invoked from network); 16 May 2002 14:58:19 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 16 May 2002 14:58:19 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.3/8.12.3) with ESMTP id g4GEwCWa015521 for ; Thu, 16 May 2002 16:58:16 +0200 Original-To: ding@gnus.org In-Reply-To: (Jonas Steverud's message of "Thu, 16 May 2002 16:00:40 +0200") Mail-Copies-To: nobody Original-Lines: 30 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44858 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44858 Jonas Steverud writes: > Simon Josefsson writes: > >> Does this work as a member of gnus-simplify-subject-functions? > > There are already a function for this; gnus-simplify-whitespace. I believe that function only removes excessive whitespace, not all whitespace. Compare (gnus-simplify-whitespace " foo bar ") "foo bar" with ((lambda (str) (with-temp-buffer (insert str) (goto-char (point-min)) (while (re-search-forward " +" nil t) (replace-match "")) (buffer-string))) " foo bar ") "foobar" The latter looks generally useful, so I added it as gnus-simplify-all-whitespace. Perhaps it should even be used by default (whitespace in Subject: is rarely useful for threading purposes), but I'll leave it for someone else to make that patch.