From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58619 Path: main.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: hashcash Date: Mon, 27 Sep 2004 21:02:04 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Sender: ding-owner@lists.math.uh.edu Message-ID: <87oejr358z.fsf@koldfront.dk> References: <87d609jbd9.fsf@koldfront.dk> <87mzzcu4pk.fsf@koldfront.dk> <87oejrn52o.fsf@koldfront.dk> <87vfdzlo1q.fsf@koldfront.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1096311833 11548 80.91.229.6 (27 Sep 2004 19:03:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2004 19:03:53 +0000 (UTC) Original-X-From: ding-owner+M7157@lists.math.uh.edu Mon Sep 27 21:03:39 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CC0mg-0004bj-00 for ; Mon, 27 Sep 2004 21:03:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CC0lb-0002CP-00; Mon, 27 Sep 2004 14:02:31 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CC0lS-0002CH-00 for ding@lists.math.uh.edu; Mon, 27 Sep 2004 14:02:22 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CC0lS-0007vr-F1 for ding@lists.math.uh.edu; Mon, 27 Sep 2004 14:02:22 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by justine.libertine.org (Postfix) with ESMTP id 709B53A0036 for ; Mon, 27 Sep 2004 14:02:18 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CC0lM-0006O7-00 for ; Mon, 27 Sep 2004 21:02:16 +0200 Original-Received: from 0x50a5b872.bynxx12.adsl-dhcp.tele.dk ([80.165.184.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2004 21:02:16 +0200 Original-Received: from asjo by 0x50a5b872.bynxx12.adsl-dhcp.tele.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2004 21:02:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 0x50a5b872.bynxx12.adsl-dhcp.tele.dk X-Face: &DfBw60^ZxI8hd?J%t&_8wW?SLF%BBx<2XQ+sXYpX!?{=0C?9D{Nc`;Eq<0d=-L User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:p4TeFZhE32AaVa1rUQKSu//XlyE= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58619 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58619 On Mon, 27 Sep 2004 19:13:15 +0200, Jesper wrote: > It's `replace-regexp-in-string' in Emacs=B9 -- you can use > `gnus-replace-in-string' as a compatibility function which works in > both flavours. Ah, thanks. I couldn't work out how to incorporate trailing-slash-removal in hashcash-token-substring, so I did this (questionable?) thing instead: (defun hashcash-token-substring () + (gnus-replace-in-string (hashcash-token-substring-unfold) " +$" "")) + +(defun hashcash-token-substring-unfold () (save-excursion (let ((token "")) (loop (setq token (concat token (buffer-substring (point) (hashcash-point-at-eol)))) (goto-char (hashcash-point-at-eol)) (forward-char 1) (unless (looking-at "[ \t]") (return token)) (while (looking-at "[ \t]") (forward-char 1)))))) Thanks for the input, --=20 "Och jag s=E4ger som Jennifer Lopez: Utan mina p=E4rmar Adam Sj= =F8gren hade det blivit oordning!" asjo@koldfront.dk