From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Tury Newsgroups: gmane.emacs.help Subject: Re: removing spaces from a string Date: Wed, 19 Apr 2006 15:06:32 GMT Organization: Nokia Message-ID: References: <19il38twme189$.1ey704zs7hwp8$.dlg@40tude.net> <851wvtiygn.fsf@lola.goethe.zz> <87d5fdg272.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145461253 23626 80.91.229.2 (19 Apr 2006 15:40:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 15:40:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 19 17:40:49 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWEn9-0002xG-EK for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 17:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWEn8-0007te-VD for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 11:40:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fi.sn.net!newsfeed2.fi.sn.net!nntp.inet.fi!inet.fi!newsfeed1.nokia.com!news1.nokia.com!news2.nokia.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: 40tude_Dialog/2.0.15.1 Original-Lines: 23 Original-NNTP-Posting-Host: 172.24.170.105 Original-X-Complaints-To: newsmaster@nokia.com Original-X-Trace: news2.nokia.com 1145459192 172.24.170.105 (Wed, 19 Apr 2006 18:06:32 EET DST) Original-NNTP-Posting-Date: Wed, 19 Apr 2006 18:06:32 EET DST Original-Xref: shelby.stanford.edu gnu.emacs.help:138841 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34461 Archived-At: On Wed, 19 Apr 2006 14:49:37 +0200, Pascal Bourguignon wrote: > David Kastrup writes: >> Peter Tury writes: >>> On Wed, 19 Apr 2006 12:01:21 +0200, LENNART BORGMAN wrote: >>>> Maybe use replace-regexp-in-string? >>> >> (concat (delq ?\ (append "This is a string" nil))) >> > Merely: (delete ? "ab cd ef") --> "abcdef" Thanks for all the good, the nicer and the even nicer solutions :-)) I didn't hope that I can learn such many things from such a simple problem. And finally I found them (delq and delete) at the list functions' description in the elisp manual (I checked only the string, the array and sequence functions before posting my original question :-( How to interpret ?\ ? Where can I learn about this? Thanks again!! P