From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.devel Subject: Re: string-strip Date: Fri, 29 Sep 2006 20:40:56 +0200 Message-ID: <451D68B8.7060403@easy-emacs.de> References: <449266B2.7030500@easy-emacs.de> <4496E618.8090401@soem.dk> <32964.128.165.123.239.1150741470.squirrel@webmail.lanl.gov> <449796E7.9090808@soem.dk> <44984C66.8090006@easy-emacs.de> <17560.20884.675268.166167@kahikatea.snap.net.nz> <4499782D.4020408@soem.dk> <44A26D7E.1030000@soem.dk> <451CCE3C.8080709@easy-emacs.de> <451D2C22.9010807@soem.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159554837 31880 80.91.229.2 (29 Sep 2006 18:33:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2006 18:33:57 +0000 (UTC) Cc: Juri Linkov , emacs-devel , Richard Stallman , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 29 20:33:54 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GTNBE-0001aY-5h for ged-emacs-devel@m.gmane.org; Fri, 29 Sep 2006 20:33:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTNBD-0000lZ-P7 for ged-emacs-devel@m.gmane.org; Fri, 29 Sep 2006 14:33:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GTNB2-0000k2-O8 for emacs-devel@gnu.org; Fri, 29 Sep 2006 14:33:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GTNB0-0000jn-N0 for emacs-devel@gnu.org; Fri, 29 Sep 2006 14:33:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTNB0-0000jk-HI for emacs-devel@gnu.org; Fri, 29 Sep 2006 14:33:34 -0400 Original-Received: from [212.227.126.187] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GTNGL-0004jD-8q; Fri, 29 Sep 2006 14:39:05 -0400 Original-Received: from [84.190.198.225] (helo=[192.168.178.23]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis), id 0ML21M-1GTNAY1MlT-0002jq; Fri, 29 Sep 2006 20:33:07 +0200 User-Agent: Thunderbird 1.5.0.4 (X11/20060516) Original-To: Lars Hansen In-Reply-To: <451D2C22.9010807@soem.dk> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:62d13292e0fce6aaed56aaadcb96352d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60315 Archived-At: Lars Hansen schrieb: > Andreas Roehler wrote: > >> Conceive this as the result of the discussion. Will it be installed? >> >> Thanks. > > Richard wrote: > >> Before installing any such thing, the changes for etc/NEWS and the >> Lisp Manual have to be written. > > This is why it was never installed. I don't have the time to write it > now. If you or someone else will do it I will be thankfull.20060929-an-ed_2.txt > Will try my best and look for it. Sometimes it's good if things take a rest. Came back to that, because I had to change the string-strip function for my needs. The task was to pick and transform references from textes with legal matters 81 Js 2701/96, -> 81Js2701-96 As these references sometimes have been followed by a commata, as shown, this should be removed too. So I inserted a commata into the expression: (string-match "\\`[[:space:]\/\n]*\\(\\(?:.\\|\n\\)*?\\)[[:space:],\n]*\\'" str) ^ Other users may need other changes. What about to make this expression a customizable user var? __ Andreas Roehler