From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58618 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: hashcash Date: Mon, 27 Sep 2004 19:13:15 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: 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 1096305566 25316 80.91.229.6 (27 Sep 2004 17:19:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2004 17:19:26 +0000 (UTC) Original-X-From: ding-owner+M7156@lists.math.uh.edu Mon Sep 27 19:19:11 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 1CBz9a-0003i0-00 for ; Mon, 27 Sep 2004 19:19:10 +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 1CBz8r-0001x6-00; Mon, 27 Sep 2004 12:18:25 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CBz8k-0001x0-00 for ding@lists.math.uh.edu; Mon, 27 Sep 2004 12:18:18 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CBz8j-0006Ab-S9 for ding@lists.math.uh.edu; Mon, 27 Sep 2004 12:18:17 -0500 Original-Received: from fitch4.uni2.net (fitch4.uni2.net [130.227.52.107]) by justine.libertine.org (Postfix) with ESMTP id 3FDD13A0039 for ; Mon, 27 Sep 2004 12:18:11 -0500 (CDT) Original-Received: from defun.localdomain (130.228.88.12.ip.tele2adsl.dk [130.228.88.12]) by fitch4.uni2.net (8.12.6/8.11.6) with ESMTP id i8RHI9ki003633 for ; Mon, 27 Sep 2004 19:18:10 +0200 Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org In-Reply-To: <87vfdzlo1q.fsf@koldfront.dk> (Adam =?iso-8859-1?Q?Sj=F8gren'?= =?iso-8859-1?Q?s?= message of "Mon, 27 Sep 2004 17:38:41 +0200") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58618 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58618 asjo@koldfront.dk (Adam Sj=F8gren) writes: > On Mon, 27 Sep 2004 17:21:37 +0200, Simon wrote: > >>> (setq ok (hashcash-verify-payment (replace-in-string >>> (hashcash-token-substring) " " "")))) > >> ...however, replace-in-string is XEmacs specific. > > My elisp-vocabulary is unfortunately very limited, and my list of > common elisp-idioms is even shorter, so I don't know what the nice way > to strip trailing space is in elisp. Yet. 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. =B9 A slightly better name, IMHO, since it isn't obvious that it works with regexps from the XEmacs name. --=20 Jesper Harder